Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: nacltoons/bindings/tolua_preload.lua

Issue 12634010: [nacltoons] Add Makefile for building lua bindings. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 --- Helper script for generating bindings with tolua++
2 -- This file is based on the file of the same name which ships
3 -- as part of cocos2dx.
4 -- example usage:
5 -- tolua++ -L tolua_preload.lua -o LuaCocos2d.cpp Cocos2d.pkg
6
7 _is_functions = _is_functions or {}
8 _to_functions = _to_functions or {}
9 _push_functions = _push_functions or {}
10
11 local CCObjectTypes = {
12 "CCPhysicsSprite",
13 }
14
15 -- register CCObject types
16 for i = 1, #CCObjectTypes do
17 _push_functions[CCObjectTypes[i]] = "toluafix_pushusertype_ccobject"
18 end
19
20 -- register LUA_FUNCTION, LUA_TABLE, LUA_HANDLE type
21 _to_functions["LUA_FUNCTION"] = "toluafix_ref_function"
22 _is_functions["LUA_FUNCTION"] = "toluafix_isfunction"
23 _to_functions["LUA_TABLE"] = "toluafix_totable"
24 _is_functions["LUA_TABLE"] = "toluafix_istable"
OLDNEW
« nacltoons/bindings/post_process.py ('K') | « nacltoons/bindings/post_process.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698