summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert G. Jakabosky <bobby@sharedrealm.com>2011-02-26 15:44:50 -0800
committerRobert G. Jakabosky <bobby@sharedrealm.com>2011-02-26 15:44:50 -0800
commitbef35fcd16e9c1f17b43ed3001715d9d1af8a2a8 (patch)
tree42f5625478c27b48424a7493d5068758c43a0bbe
parent3cb6c478d9533c60e8b7de66dd53653d86c53d93 (diff)
downloadluagit2-bef35fcd16e9c1f17b43ed3001715d9d1af8a2a8.tar.gz
cleanup formatting of README.
-rw-r--r--README.md12
-rw-r--r--src/pre_generated-git2.nobj.c11
2 files changed, 6 insertions, 17 deletions
diff --git a/README.md b/README.md
index 12429d1..3c76c09 100644
--- a/README.md
+++ b/README.md
@@ -8,21 +8,21 @@ Installing
### Install lua-git2:
-curl -O "https://github.com/Neopallium/luagit2/raw/master/lua-git2-scm-0.rockspec"
-
-luarocks install lua-git2-scm-0.rockspec
+ curl -O "https://github.com/Neopallium/luagit2/raw/master/lua-git2-scm-0.rockspec"
+
+ luarocks install lua-git2-scm-0.rockspec
To re-generating the bindings
-----------------------------
-You will need to install LuaNativeObjects and set the CMake variable USE_PRE_GENERATED_BINDINGS to FALSE.
+You will need to install LuaNativeObjects and set the CMake variable `USE_PRE_GENERATED_BINDINGS` to FALSE.
By default CMake will use the pre-generated bindings that are include in the project.
Build Dependencies
------------------
-Optional dependency for re-generating Lua bindings from *.nobj.lua files:
+Optional dependency for re-generating Lua bindings from `*.nobj.lua` files:
-* [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects), this is the bindings generator used to convert the *.nobj.lua files into a native Lua module.
+* [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects), this is the bindings generator used to convert the `*.nobj.lua` files into a native Lua module.
diff --git a/src/pre_generated-git2.nobj.c b/src/pre_generated-git2.nobj.c
index 0470d7d..701c861 100644
--- a/src/pre_generated-git2.nobj.c
+++ b/src/pre_generated-git2.nobj.c
@@ -394,13 +394,7 @@ static FUNC_UNUSED void *obj_udata_luacheck(lua_State *L, int _index, obj_type *
static FUNC_UNUSED void *obj_udata_luadelete(lua_State *L, int _index, obj_type *type, int *flags) {
void *obj;
-#if OBJ_DATA_HIDDEN_METATABLE
- obj_udata *ud = obj_udata_toobj(L, _index);
- (void)type;
- obj = ud->obj;
-#else
obj_udata *ud = obj_udata_luacheck_internal(L, _index, &(obj), type);
-#endif
*flags = ud->flags;
/* null userdata. */
ud->obj = NULL;
@@ -535,12 +529,7 @@ static FUNC_UNUSED void * obj_simple_udata_luacheck(lua_State *L, int _index, ob
static FUNC_UNUSED void * obj_simple_udata_luadelete(lua_State *L, int _index, obj_type *type, int *flags) {
void *obj;
-#if OBJ_DATA_HIDDEN_METATABLE
- obj = obj_simple_udata_toobj(L, _index);
- (void)type;
-#else
obj = obj_simple_udata_luacheck(L, _index, type);
-#endif
*flags = OBJ_UDATA_FLAG_OWN;
/* clear the metatable to invalidate userdata. */
lua_pushnil(L);