File tree 1 file changed +4
-4
lines changed
cocos/scripting/lua-bindings/manual/platform/ios
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 122
122
lua_pushboolean (L, 1 );
123
123
if (returnLength > 0 )
124
124
{
125
- if (strcmp (returnType, " @ " ) == 0 )
125
+ if (strcmp (returnType, @encode ( id ) ) == 0 )
126
126
{
127
127
id ret;
128
128
[invocation getReturnValue: &ret];
129
129
pushValue (L, ret);
130
130
}
131
- else if (strcmp (returnType, " B " ) == 0 ) // BOOL
131
+ else if (strcmp (returnType, @encode ( BOOL ) ) == 0 ) // BOOL
132
132
{
133
133
char ret;
134
134
[invocation getReturnValue: &ret];
135
135
lua_pushboolean (L, ret);
136
136
}
137
- else if (strcmp (returnType, " i " ) == 0 ) // int
137
+ else if (strcmp (returnType, @encode ( int ) ) == 0 ) // int
138
138
{
139
139
int ret;
140
140
[invocation getReturnValue: &ret];
141
141
lua_pushinteger (L, ret);
142
142
}
143
- else if (strcmp (returnType, " f " ) == 0 ) // float
143
+ else if (strcmp (returnType, @encode ( float ) ) == 0 ) // float
144
144
{
145
145
float ret;
146
146
[invocation getReturnValue: &ret];
You can’t perform that action at this time.
0 commit comments