2021-04-28 18:30:19 +01:00
|
|
|
#include "be_constobj.h"
|
|
|
|
|
|
|
|
static be_define_const_map_slots(m_libenergy_map) {
|
2021-09-24 17:05:16 +01:00
|
|
|
{ be_const_key(init, -1), be_const_closure(init_closure) },
|
|
|
|
{ be_const_key(_ptr, 3), be_const_comptr(&Energy) },
|
|
|
|
{ be_const_key(setmember, -1), be_const_closure(setmember_closure) },
|
|
|
|
{ be_const_key(member, 2), be_const_closure(member_closure) },
|
|
|
|
{ be_const_key(read, -1), be_const_closure(read_closure) },
|
2021-04-28 18:30:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static be_define_const_map(
|
|
|
|
m_libenergy_map,
|
2021-09-24 17:05:16 +01:00
|
|
|
5
|
2021-04-28 18:30:19 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
static be_define_const_module(
|
|
|
|
m_libenergy,
|
|
|
|
"energy"
|
|
|
|
);
|
|
|
|
|
2021-10-23 14:08:33 +01:00
|
|
|
BE_EXPORT_VARIABLE be_define_const_native_module(energy);
|