axmol/scripting/lua/cocos2dx_support/tolua_fix.h

34 lines
1.2 KiB
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 "toluafix_refid_ptr_mapping"
#define TOLUA_REFID_TYPE_MAPPING "toluafix_refid_type_mapping"
TOLUA_API void toluafix_open(lua_State* L);
TOLUA_API int toluafix_pushusertype_ccobject(lua_State* L,
int uid,
int* p_refid,
void* ptr,
const char* type);
TOLUA_API int toluafix_remove_ccobject_by_refid(lua_State* L, int refid);
TOLUA_API int toluafix_ref_function(lua_State* L, int lo, int def);
TOLUA_API void toluafix_remove_function_by_refid(lua_State* L, int refid);
TOLUA_API int toluafix_isfunction(lua_State* L, int lo, const char* type, int def, tolua_Error* err);
TOLUA_API int toluafix_totable(lua_State* L, int lo, int def);
TOLUA_API int toluafix_istable(lua_State* L, int lo, const char* type, int def, tolua_Error* err);
TOLUA_API void toluafix_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_