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

Side by Side Diff: nacltoons/bindings/lua_level_layer.cpp

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
1 /* 1 /*
2 ** Lua binding: level_layer 2 ** Lua binding: level_layer
3 ** Generated automatically by tolua++-1.0.93 on Mon Feb 25 16:17:52 2013. 3 ** Generated automatically by tolua++-1.0.93 on Fri Mar 8 17:21:39 2013.
4 */ 4 */
5
6 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
7 // Use of this source code is governed by a BSD-style license that can be
8 // found in the LICENSE file.
9 #ifndef __cplusplus
10 #include "stdlib.h"
11 #endif
12 #include "string.h"
13
14 #include "tolua++.h"
15
16 /* Exported function */
17 TOLUA_API int tolua_level_layer_open (lua_State* tolua_S);
18
5 #include "lua_level_layer.h" 19 #include "lua_level_layer.h"
6 #include "level_layer.h" 20 #include "level_layer.h"
7 21
8 /* function to register type */ 22 /* function to register type */
9 static void tolua_reg_types (lua_State* tolua_S) 23 static void tolua_reg_types (lua_State* tolua_S)
10 { 24 {
11 tolua_usertype(tolua_S,"CCLayerColor"); 25 tolua_usertype(tolua_S,"CCLayerColor");
26 tolua_usertype(tolua_S,"b2World");
12 tolua_usertype(tolua_S,"LevelLayer"); 27 tolua_usertype(tolua_S,"LevelLayer");
13 tolua_usertype(tolua_S,"b2World");
14 } 28 }
15 29
16 /* method: GetWorld of class LevelLayer */ 30 /* method: GetWorld of class LevelLayer */
17 #ifndef TOLUA_DISABLE_tolua_level_layer_LevelLayer_GetWorld00 31 #ifndef TOLUA_DISABLE_tolua_level_layer_LevelLayer_GetWorld00
18 static int tolua_level_layer_LevelLayer_GetWorld00(lua_State* tolua_S) 32 static int tolua_level_layer_LevelLayer_GetWorld00(lua_State* tolua_S)
19 { 33 {
20 #ifndef TOLUA_RELEASE 34 #ifndef TOLUA_RELEASE
21 tolua_Error tolua_err; 35 tolua_Error tolua_err;
22 if ( 36 if (
23 !tolua_isusertype(tolua_S,1,"LevelLayer",0,&tolua_err) || 37 !tolua_isusertype(tolua_S,1,"LevelLayer",0,&tolua_err) ||
(...skipping 14 matching lines...) Expand all
38 } 52 }
39 return 1; 53 return 1;
40 #ifndef TOLUA_RELEASE 54 #ifndef TOLUA_RELEASE
41 tolua_lerror: 55 tolua_lerror:
42 tolua_error(tolua_S,"#ferror in function 'GetWorld'.",&tolua_err); 56 tolua_error(tolua_S,"#ferror in function 'GetWorld'.",&tolua_err);
43 return 0; 57 return 0;
44 #endif 58 #endif
45 } 59 }
46 #endif //#ifndef TOLUA_DISABLE 60 #endif //#ifndef TOLUA_DISABLE
47 61
48 /* method: GetWorld of class LevelLayer */ 62 /* method: LevelComplete of class LevelLayer */
49 #ifndef TOLUA_DISABLE_tolua_level_layer_LevelLayer_LevelComplete00 63 #ifndef TOLUA_DISABLE_tolua_level_layer_LevelLayer_LevelComplete00
50 static int tolua_level_layer_LevelLayer_LevelComplete00(lua_State* tolua_S) 64 static int tolua_level_layer_LevelLayer_LevelComplete00(lua_State* tolua_S)
51 { 65 {
52 #ifndef TOLUA_RELEASE 66 #ifndef TOLUA_RELEASE
53 tolua_Error tolua_err; 67 tolua_Error tolua_err;
54 if ( 68 if (
55 !tolua_isusertype(tolua_S,1,"LevelLayer",0,&tolua_err) || 69 !tolua_isusertype(tolua_S,1,"LevelLayer",0,&tolua_err) ||
56 !tolua_isnoobj(tolua_S,2,&tolua_err) 70 !tolua_isnoobj(tolua_S,2,&tolua_err)
57 ) 71 )
58 goto tolua_lerror; 72 goto tolua_lerror;
59 else 73 else
60 #endif 74 #endif
61 { 75 {
62 LevelLayer* self = (LevelLayer*) tolua_tousertype(tolua_S,1,0); 76 LevelLayer* self = (LevelLayer*) tolua_tousertype(tolua_S,1,0);
63 #ifndef TOLUA_RELEASE 77 #ifndef TOLUA_RELEASE
64 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorld'", NULL); 78 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LevelComplete'", N ULL);
65 #endif 79 #endif
66 { 80 {
67 self->LevelComplete(); 81 self->LevelComplete();
68 } 82 }
69 } 83 }
70 return 1; 84 return 0;
71 #ifndef TOLUA_RELEASE 85 #ifndef TOLUA_RELEASE
72 tolua_lerror: 86 tolua_lerror:
73 tolua_error(tolua_S,"#ferror in function 'LevelComplete'.",&tolua_err); 87 tolua_error(tolua_S,"#ferror in function 'LevelComplete'.",&tolua_err);
74 return 0; 88 return 0;
75 #endif 89 #endif
76 } 90 }
77 #endif //#ifndef TOLUA_DISABLE 91 #endif //#ifndef TOLUA_DISABLE
78 92
79 /* Open function */ 93 /* Open function */
80 TOLUA_API int tolua_level_layer_open (lua_State* tolua_S) 94 TOLUA_API int tolua_level_layer_open (lua_State* tolua_S)
(...skipping 11 matching lines...) Expand all
92 return 1; 106 return 1;
93 } 107 }
94 108
95 109
96 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 110 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
97 TOLUA_API int luaopen_level_layer (lua_State* tolua_S) { 111 TOLUA_API int luaopen_level_layer (lua_State* tolua_S) {
98 return tolua_level_layer_open(tolua_S); 112 return tolua_level_layer_open(tolua_S);
99 }; 113 };
100 #endif 114 #endif
101 115
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698