File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
![ Stars] ( https://img.shields.io/github/stars/9chu/luastgplus?style=social )
9
9
![ Forks] ( https://img.shields.io/github/forks/9chu/luastgplus?style=social )
10
10
11
- ![ Build Windows] ( https://github.com/9chu/LuaSTGPlus/actions/workflows/build_windows.yaml/badge.svg )
11
+ [ ![ Build Windows] ( https://github.com/9chu/LuaSTGPlus/actions/workflows/build_windows.yaml/badge.svg )] ( https://nightly.link/9chu/LuaSTGPlus/workflows/build_windows.yaml/master )
12
12
13
13
** Working in progress**
14
14
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ def _parse_native_method_name(line):
175
175
elif '0' <= ch <= '9' :
176
176
state = 2
177
177
else :
178
- return line [i + 1 : index ]
178
+ return line [i + 1 : index ]. strip ()
179
179
elif state == 2 :
180
180
if ('a' <= ch <= 'z' ) or ('A' <= ch <= 'Z' ) or ch == '_' :
181
181
state = 1
@@ -232,7 +232,7 @@ def _parse_native_member_name(line):
232
232
elif '0' <= ch <= '9' :
233
233
state = 2
234
234
else :
235
- return line [i + 1 : index ]
235
+ return line [i + 1 : index ]. strip ()
236
236
elif state == 2 :
237
237
if ('a' <= ch <= 'z' ) or ('A' <= ch <= 'Z' ) or ch == '_' :
238
238
state = 1
@@ -576,7 +576,7 @@ def main():
576
576
properties = cls .get_properties ()
577
577
f .write (f'void LuaRegister(LuaClassRegister<{ name } >& register_)\n ' )
578
578
f .write ('{\n ' )
579
- if len (methods ) == 0 and len (getters ) == 0 and len (setters ) == 0 :
579
+ if len (methods ) == 0 and len (getters ) == 0 and len (setters ) == 0 and len ( properties ) == 0 :
580
580
f .write (f' static_cast<void>(register_);\n ' )
581
581
else :
582
582
f .write (f' register_\n ' )
You can’t perform that action at this time.
0 commit comments