axmol/lua/cocos2dx_support/tolua_fix.h

32 lines
984 B
C
Raw Normal View History

2011-11-18 20:36:39 +08:00
#ifndef __TOLUA_FIX_H_
#define __TOLUA_FIX_H_
#include "tolua++.h"
#ifdef __cplusplus
extern "C"
{
#endif
#define TOLUA_REFID_PTR_MAPPING "tolua_refid_ptr_mapping"
#define TOLUA_REFID_TYPE_MAPPING "tolua_refid_type_mapping"
2011-11-18 20:36:39 +08:00
TOLUA_API void tolua_prepare_ccobject_table(lua_State* L);
2012-01-08 21:03:16 +08:00
TOLUA_API int tolua_pushusertype_ccobject(lua_State* L,
int uid,
int* p_refid,
2012-01-08 21:03:16 +08:00
void* ptr,
const char* type);
TOLUA_API int tolua_remove_ccobject_by_refid(lua_State* L, int refid);
TOLUA_API int tolua_ref_function(lua_State* L, int lo, int def);
2011-11-18 20:36:39 +08:00
TOLUA_API void tolua_remove_function_by_refid(lua_State* L, int refid);
TOLUA_API int tolua_isfunction(lua_State* L, int lo, tolua_Error* err);
2011-12-17 11:18:33 +08:00
TOLUA_API void tolua_stack_dump(lua_State* L, const char* label);
2011-11-18 20:36:39 +08:00
#ifdef __cplusplus
} // extern "C"
#endif
2011-11-18 20:36:39 +08:00
#endif // __TOLUA_FIX_H_