picrin/extlib/benz/include/picrin/lib.h

27 lines
390 B
C
Raw Normal View History

2014-08-25 00:38:09 -04:00
/**
* See Copyright Notice in picrin.h
*/
2014-09-14 04:54:53 -04:00
#ifndef PICRIN_LIB_H
#define PICRIN_LIB_H
2014-08-25 00:38:09 -04:00
#if defined(__cplusplus)
extern "C" {
#endif
struct pic_lib {
PIC_OBJECT_HEADER
pic_value name;
2015-05-30 09:39:03 -04:00
struct pic_env *env;
2015-01-18 07:32:16 -05:00
struct pic_dict *exports;
2014-08-25 00:38:09 -04:00
};
2015-06-16 09:51:05 -04:00
#define pic_lib_p(o) (pic_type(o) == PIC_TT_LIB)
2014-08-25 00:38:09 -04:00
#define pic_lib_ptr(o) ((struct pic_lib *)pic_ptr(o))
#if defined(__cplusplus)
}
#endif
#endif