From 4c770c5b37de769fb50ccd81b11c51367f57d8ba Mon Sep 17 00:00:00 2001 From: "Robert G. Jakabosky" Date: Fri, 7 Jan 2011 10:45:11 -0800 Subject: Replace OType userdata with strings. Added missing rawsize() method. --- object.nobj.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'object.nobj.lua') 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" {} -- cgit v1.2.1