diff options
author | Robert G. Jakabosky <bobby@sharedrealm.com> | 2011-01-07 10:45:11 -0800 |
---|---|---|
committer | Robert G. Jakabosky <bobby@sharedrealm.com> | 2011-01-07 10:45:11 -0800 |
commit | 4c770c5b37de769fb50ccd81b11c51367f57d8ba (patch) | |
tree | 9da7b5e85e2b5120439aa9b6719f6743c6602818 /object.nobj.lua | |
parent | a4a95948e23558873801b9f4680d1a930a12da2f (diff) | |
download | luagit2-4c770c5b37de769fb50ccd81b11c51367f57d8ba.tar.gz |
Replace OType userdata with strings. Added missing rawsize() method.
Diffstat (limited to 'object.nobj.lua')
-rw-r--r-- | object.nobj.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/object.nobj.lua b/object.nobj.lua index 518340f..2af52df 100644 --- a/object.nobj.lua +++ b/object.nobj.lua @@ -45,7 +45,8 @@ object "Object" { ]] }, method "type" { - c_call "OType" "git_object_type" {} + var_out{"const char *", "type"}, + c_source "${type} = git_object_type2string(git_object_type(${this}));" }, method "owner" { c_call "Repository *" "git_object_owner" {} |