Skip to content

Commit aebb960

Browse files
committed
Rename functions to getType(), getLength(), call(), callProtected() and callProtectedC() to improve API consistency
1 parent fcf6d9e commit aebb960

File tree

2 files changed

+119
-116
lines changed

2 files changed

+119
-116
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,11 @@ This section describes the current status of Zig language bindings ("the Zig API
125125
|----------------------------|-------------------------------------|
126126
| `lua_atpanic` | ☑️ `lua.atPanic()` |
127127
| `lua_call` | ☑️ `lua.call()` |
128+
| `lua_pcall` | ☑️📢 `lua.callProtected()` |
129+
| `lua_cpcall` | ☑️📢 `lua.callProtectedC()` |
128130
| `lua_checkstack` | ☑️ `lua.checkStack()` |
129131
| `lua_close` | ☑️📢 `lua.deinit()` |
130132
| `lua_concat` | ☑️ `lua.concat()` |
131-
| `lua_cpcall` | ☑️📢 `lua.protectedCallCFunction()` |
132133
| `lua_createtable` | ☑️ `lua.createTable()` |
133134
| `lua_dump` | ☑️ `lua.dump()` |
134135
| `lua_equal` | ☑️ `lua.equal()` |
@@ -161,8 +162,7 @@ This section describes the current status of Zig language bindings ("the Zig API
161162
| `lua_newthread` | ☑️ `lua.newThread()` |
162163
| `lua_newuserdata` | ☑️ `lua.newUserdata()` |
163164
| `lua_next` | ☑️ `lua.next()` |
164-
| `lua_objlen` | ☑️📢 `lua.lengthOf()` |
165-
| `lua_pcall` | ☑️📢 `lua.protectedCall()` |
165+
| `lua_objlen` | ☑️📢 `lua.getLenth()` |
166166
| `lua_pop` | ☑️ `lua.pop()` |
167167
| `lua_pushboolean` | ☑️ `lua.pushBoolean()` |
168168
| `lua_pushcclosure` | ☑️ `lua.pushCClosure()` |
@@ -175,7 +175,7 @@ This section describes the current status of Zig language bindings ("the Zig API
175175
| `lua_pushnil` | ☑️ `lua.pushNil()` |
176176
| `lua_pushnumber` | ☑️ `lua.pushNumber()` |
177177
| `lua_pushstring` | ☑️ `lua.pushString()` |
178-
| `lua_pushthread` | ☑️ `lua.pushString()` |
178+
| `lua_pushthread` | ☑️ `lua.pushThread()` |
179179
| `lua_pushvalue` | ☑️ `lua.pushValue()` |
180180
| `lua_pushvfstring` | 🆖 please use `lua.pushFString()` |
181181
| `lua_rawequal` | ☑️📢 `lua.equalRaw()` |
@@ -204,7 +204,7 @@ This section describes the current status of Zig language bindings ("the Zig API
204204
| `lua_tostring` | ☑️ `lua.toString()` |
205205
| `lua_tothread` | ☑️ `lua.toThread()` |
206206
| `lua_touserdata` | ☑️ `lua.toUserdata()` |
207-
| `lua_type` | ☑️📢 `lua.typeOf()` |
207+
| `lua_type` | ☑️📢 `lua.getType()` |
208208
| `lua_typename` | ☑️ `lua.typeName()` |
209209
| `lua_xmove` | ☑️ `lua.xmove()` |
210210
| `lua_yield` | ➖ Hidden, see [Issue #6][ISSUE-6] |

0 commit comments

Comments
 (0)