summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-02-25 15:16:44 -0600
committersanine <sanine.not@pm.me>2023-02-25 15:16:44 -0600
commit4f0e0988eb457654f70cc2e96faca22db56234f3 (patch)
treed7e85bfb0a05e7984e9ca39497adafe8f4c7b3a5 /util
parent2fa0047f4600ef95d32e864dd7c54e99e27265fe (diff)
bind ode heightfield and trimesh collider functions
Diffstat (limited to 'util')
-rw-r--r--util/generate-binding.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/generate-binding.lua b/util/generate-binding.lua
index 870cbb4..7fa6dbe 100644
--- a/util/generate-binding.lua
+++ b/util/generate-binding.lua
@@ -69,6 +69,7 @@ function GetLuaType(ctype)
-- numbers
if string.match(ctype, "float$") then return "number"
elseif string.match(ctype, "double$") then return "number"
+ elseif string.match(ctype, "Real$") then return "number" -- for ode bindings c;
-- integers
elseif string.match(ctype, "char$") then return "integer"
elseif string.match(ctype, "int$") then return "integer"
@@ -87,7 +88,7 @@ function PullArg(arg, index)
local pull
if ltype == "unknown" then
- pull = string.format("/* get: %s */", arg.type)
+ pull = string.format("get: %s", arg.type)
else
pull = string.format("luaL_check%s(L, %d);", ltype, index)
end