Skip to content

Commit

Permalink
Removed old code that prevented bindings to generate on methods with …
Browse files Browse the repository at this point in the history
…less than 2 public methods
  • Loading branch information
ivansafrin committed Jun 25, 2014
1 parent 41ea915 commit 5e62c0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Bindings/Scripts/create_lua_library/create_lua_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def createLUABindings(inputPath, prefix, mainInclude, libSmallName, libName, api
f = open(fileName) # Def: Input file handle
contents = f.read().replace("_PolyExport", "") # Def: Input file contents, strip out "_PolyExport"
cppHeader = CppHeaderParser.CppHeader(contents, "string") # Def: Input file contents, parsed structure
ignore_classes = ["PolycodeShaderModule", "Object", "Threaded", "OpenGLCubemap", "PolyBase"]
ignore_classes = ["PolycodeShaderModule", "Object", "Threaded", "OpenGLCubemap", "PolyBase", "Matrix4::union "]

# Iterate, check each class in this file.
for ckey in cppHeader.classes:
Expand All @@ -194,11 +194,12 @@ def createLUABindings(inputPath, prefix, mainInclude, libSmallName, libName, api
luaClassBindingOut += "class \"%s\"\n\n" % ckey

if ckey in ignore_classes:
print("INGORING class %s" % ckey)
continue

if len(c["methods"]["public"]) < 2: # Used to, this was a continue.
print("Warning: Lua-binding class with less than two methods")
continue # FIXME: Remove this, move any non-compileable classes into ignore_classes
#if len(c["methods"]["public"]) < 2: # Used to, this was a continue.
# print("Warning: Lua-binding class with less than two methods")
# continue # FIXME: Remove this, move any non-compileable classes into ignore_classes

extendString = ""
if len(c["inherits"]) > 0:
Expand Down

0 comments on commit 5e62c0c

Please sign in to comment.