diff options
author | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
---|---|---|
committer | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
commit | 5c4fc93d5f4137bf4c22ddf1a048c907a4a26727 (patch) | |
tree | a9a68e1f6a9c3bfe2b64fa1c3a4098865b7d3b5d /src/auxiliar.c | |
parent | ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f (diff) | |
parent | 43a97b7f0053313b43906371dbdc226271e6c8ab (diff) | |
download | luasocket-hjelmeland-patch-1.tar.gz luasocket-hjelmeland-patch-1.tar.bz2 luasocket-hjelmeland-patch-1.zip |
Merge branch 'master' into hjelmeland-patch-1hjelmeland-patch-1
Diffstat (limited to '')
-rw-r--r-- | src/auxiliar.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/auxiliar.c b/src/auxiliar.c index 18fa8e4..93a66a0 100644 --- a/src/auxiliar.c +++ b/src/auxiliar.c | |||
@@ -2,14 +2,11 @@ | |||
2 | * Auxiliar routines for class hierarchy manipulation | 2 | * Auxiliar routines for class hierarchy manipulation |
3 | * LuaSocket toolkit | 3 | * LuaSocket toolkit |
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include "luasocket.h" | ||
6 | #include "auxiliar.h" | ||
5 | #include <string.h> | 7 | #include <string.h> |
6 | #include <stdio.h> | 8 | #include <stdio.h> |
7 | 9 | ||
8 | #include "auxiliar.h" | ||
9 | |||
10 | /*=========================================================================*\ | ||
11 | * Exported functions | ||
12 | \*=========================================================================*/ | ||
13 | /*-------------------------------------------------------------------------*\ | 10 | /*-------------------------------------------------------------------------*\ |
14 | * Initializes the module | 11 | * Initializes the module |
15 | \*-------------------------------------------------------------------------*/ | 12 | \*-------------------------------------------------------------------------*/ |
@@ -143,7 +140,7 @@ void *auxiliar_getgroupudata(lua_State *L, const char *groupname, int objidx) { | |||
143 | * otherwise | 140 | * otherwise |
144 | \*-------------------------------------------------------------------------*/ | 141 | \*-------------------------------------------------------------------------*/ |
145 | void *auxiliar_getclassudata(lua_State *L, const char *classname, int objidx) { | 142 | void *auxiliar_getclassudata(lua_State *L, const char *classname, int objidx) { |
146 | return luaL_checkudata(L, objidx, classname); | 143 | return luaL_testudata(L, objidx, classname); |
147 | } | 144 | } |
148 | 145 | ||
149 | /*-------------------------------------------------------------------------*\ | 146 | /*-------------------------------------------------------------------------*\ |
@@ -155,4 +152,3 @@ int auxiliar_typeerror (lua_State *L, int narg, const char *tname) { | |||
155 | luaL_typename(L, narg)); | 152 | luaL_typename(L, narg)); |
156 | return luaL_argerror(L, narg, msg); | 153 | return luaL_argerror(L, narg, msg); |
157 | } | 154 | } |
158 | |||