fix how regex inserts underscore in function names with '2d' and '3d' (#149)
This commit is contained in:
parent
9e5c9b7f9f
commit
bf6d5d421c
8 changed files with 81 additions and 81 deletions
|
@ -14,6 +14,7 @@
|
|||
|
||||
from pathlib import Path
|
||||
from raylib import rl, ffi
|
||||
from pyray import _underscore
|
||||
from inspect import ismethod, getmembers, isbuiltin
|
||||
import inflection, sys, json
|
||||
|
||||
|
@ -87,7 +88,7 @@ ffi: _cffi_backend.FFI
|
|||
reserved_words = ("in", "list", "tuple", "set", "dict", "from", "range", "min", "max", "any", "all", "len")
|
||||
|
||||
for name, attr in getmembers(rl):
|
||||
uname = inflection.underscore(name).replace('3_d', '_3d').replace('2_d', '_2d')
|
||||
uname = _underscore(name)
|
||||
if isbuiltin(attr) or str(type(attr)) == "<class '_cffi_backend.__FFIFunctionWrapper'>":
|
||||
json_object = known_functions.get(name, None)
|
||||
if json_object is None:
|
||||
|
|
Reference in a new issue