You have defined
PHP Code:
#define fm_create_entity(%1) engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, %1))
and you have put
PHP Code:
ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, item))
then, may also put directly ---->
PHP Code:
ent = fm_create_entity(item)
__________________