Skip to content

Commit b6be30b

Browse files
a1batrossZegeri
authored andcommitted
xrScriptEngine: fix luabind's call_member call on GCC
1 parent 9c84cce commit b6be30b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/xrScriptEngine/ScriptExportMacros.hpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
{ \
6565
try \
6666
{ \
67-
return call_member<ret_type>(this, #v_func_name); \
67+
return luabind::call_member<ret_type>(this, #v_func_name); \
6868
} \
6969
CAST_FAILED(v_func_name, ret_type) \
7070
catch (...) { return ((ret_type)(0)); } \
@@ -76,7 +76,7 @@
7676
{ \
7777
try \
7878
{ \
79-
return call_member<ret_type>(this, #v_func_name, p1); \
79+
return luabind::call_member<ret_type>(this, #v_func_name, p1); \
8080
} \
8181
CAST_FAILED(v_func_name, ret_type) \
8282
catch (...) { return ((ret_type)(0)); } \
@@ -87,7 +87,7 @@
8787
}
8888
#else // DEBUG
8989
#define DEFINE_LUA_WRAPPER_CONST_METHOD_1(v_func_name, ret_type, t1) \
90-
virtual ret_type v_func_name(t1 p1) const { return call_member<ret_type>(this, #v_func_name, p1); } \
90+
virtual ret_type v_func_name(t1 p1) const { return luabind::call_member<ret_type>(this, #v_func_name, p1); } \
9191
static ret_type v_func_name##_static(const inherited* ptr, t1 p1) \
9292
{ \
9393
return ptr->self_type::inherited::v_func_name(p1); \
@@ -99,7 +99,7 @@
9999
{ \
100100
try \
101101
{ \
102-
call_member<void>(this, #v_func_name); \
102+
luabind::call_member<void>(this, #v_func_name); \
103103
} \
104104
catch (...) \
105105
{ \
@@ -111,7 +111,7 @@
111111
{ \
112112
try \
113113
{ \
114-
call_member<void>(this, #v_func_name, p1); \
114+
luabind::call_member<void>(this, #v_func_name, p1); \
115115
} \
116116
catch (...) \
117117
{ \
@@ -123,7 +123,7 @@
123123
{ \
124124
try \
125125
{ \
126-
call_member<void>(this, #v_func_name, p1, p2); \
126+
luabind::call_member<void>(this, #v_func_name, p1, p2); \
127127
} \
128128
catch (...) \
129129
{ \
@@ -135,7 +135,7 @@
135135
{ \
136136
try \
137137
{ \
138-
call_member<void>(this, #v_func_name, p1, p2, p3); \
138+
luabind::call_member<void>(this, #v_func_name, p1, p2, p3); \
139139
} \
140140
catch (...) \
141141
{ \
@@ -151,7 +151,7 @@
151151
{ \
152152
try \
153153
{ \
154-
call_member<void>(this, #v_func_name, p1, p2, p3, p4); \
154+
luabind::call_member<void>(this, #v_func_name, p1, p2, p3, p4); \
155155
} \
156156
catch (...) \
157157
{ \
@@ -167,7 +167,7 @@
167167
{ \
168168
try \
169169
{ \
170-
return call_member<ret_type>(this, #v_func_name); \
170+
return luabind::call_member<ret_type>(this, #v_func_name); \
171171
} \
172172
CAST_FAILED(v_func_name, ret_type) \
173173
catch (...) { return ((ret_type)(0)); } \
@@ -178,7 +178,7 @@
178178
{ \
179179
try \
180180
{ \
181-
return call_member<ret_type>(this, #v_func_name, p1); \
181+
return luabind::call_member<ret_type>(this, #v_func_name, p1); \
182182
} \
183183
CAST_FAILED(v_func_name, ret_type) \
184184
catch (...) { return ((ret_type)(0)); } \
@@ -189,7 +189,7 @@
189189
{ \
190190
try \
191191
{ \
192-
return call_member<ret_type>(this, #v_func_name, p1, p2); \
192+
return luabind::call_member<ret_type>(this, #v_func_name, p1, p2); \
193193
} \
194194
CAST_FAILED(v_func_name, ret_type) \
195195
catch (...) { return ((ret_type)(0)); } \
@@ -204,7 +204,7 @@
204204
{ \
205205
try \
206206
{ \
207-
return call_member<ret_type>(this, #v_func_name, p1, p2, p3); \
207+
return luabind::call_member<ret_type>(this, #v_func_name, p1, p2, p3); \
208208
} \
209209
CAST_FAILED(v_func_name, ret_type) \
210210
catch (...) { return ((ret_type)(0)); } \
@@ -219,7 +219,7 @@
219219
{ \
220220
try \
221221
{ \
222-
return call_member<ret_type>(this, #v_func_name, p1, p2, p3, p4); \
222+
return luabind::call_member<ret_type>(this, #v_func_name, p1, p2, p3, p4); \
223223
} \
224224
CAST_FAILED(v_func_name, ret_type) \
225225
catch (...) { return ((ret_type)(0)); } \

0 commit comments

Comments
 (0)