Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/go-lua
/ functions
Functions
673 in github.com/Shopify/go-lua
⨍
Functions
673
◇
Types & classes
50
↓ 121 callers
Method
a
Note: the gc optimizer cannot inline through multiple function calls. Manually inline for now. func (i instruction) a() int { return i.arg(posA, siz
instructions.go:151
↓ 73 callers
Method
b
()
instructions.go:152
↓ 68 callers
Method
Error
Error generates a Lua error. The error message must be on the stack top. The error can be any of any Lua type. This function will panic(). http://ww
lua.go:1171
↓ 65 callers
Method
opCode
()
instructions.go:136
↓ 59 callers
Method
step
()
stack.go:205
↓ 56 callers
Method
PushString
PushString pushes a string onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushstring
lua.go:886
↓ 51 callers
Method
c
()
instructions.go:153
↓ 45 callers
Method
hook
()
vm.go:294
↓ 45 callers
Method
hooked
()
vm.go:292
↓ 45 callers
Method
indexToValue
(index int)
lua.go:491
↓ 42 callers
Method
assert
(cond bool)
code.go:293
↓ 40 callers
Function
opmode
(t, a, b, c, m int)
instructions.go:212
↓ 37 callers
Method
PushValue
PushValue pushes a copy of the element at index onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushvalue
lua.go:1427
↓ 36 callers
Function
Errorf
Errorf raises an error. The error message format is given by format plus any extra arguments, following the same rules as PushFString. It also adds at
auxiliary.go:209
↓ 34 callers
Function
CheckString
CheckString checks whether the function argument at index is a string and returns this string. This function uses ToString to get its result, so all
auxiliary.go:317
↓ 33 callers
Method
Pop
Pop pops n elements from the stack. http://www.lua.org/manual/5.2/manual.html#lua_pop
lua.go:1474
↓ 31 callers
Method
advance
()
scanner.go:123
↓ 28 callers
Method
EncodeABC
(op opCode, a, b, c int)
code.go:320
↓ 28 callers
Method
push
(v value)
stack.go:5
↓ 28 callers
Method
stackIndex
(slot int)
stack.go:145
↓ 26 callers
Function
NewState
NewState creates a new thread running in a new, independent state. http://www.lua.org/manual/5.2/manual.html#lua_newstate
lua.go:456
↓ 26 callers
Method
PushNumber
PushNumber pushes a number onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushnumber
lua.go:1437
↓ 26 callers
Method
next
(t *table, key int)
tables.go:224
↓ 25 callers
Method
Top
Top returns the index of the top element in the stack. Because Lua indices start at 1, this result is equal to the number of elements in the stack (he
lua.go:1367
↓ 25 callers
Method
apiPush
(v value)
lua.go:297
↓ 25 callers
Method
jump
(pc int)
code.go:416
↓ 25 callers
Function
k
(field int, constants []value, frame []value)
vm.go:948
↓ 25 callers
Method
k
(field int)
vm.go:261
↓ 24 callers
Method
PushNil
PushNil pushes a nil value onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushnil
lua.go:1432
↓ 24 callers
Method
base
()
stack.go:146
↓ 23 callers
Method
SetField
SetField does the equivalent of table[key]=v where table is the value at index and v is the value on top of the stack. This function pops the value f
lua.go:481
↓ 23 callers
Method
sbx
()
instructions.go:156
↓ 22 callers
Function
ArgumentCheck
ArgumentCheck checks whether cond is true. If not, raises an error with a standard message.
auxiliary.go:308
↓ 22 callers
Function
CheckInteger
(l *State, index int)
auxiliary.go:349
↓ 22 callers
Method
TypeOf
TypeOf returns the type of the value at index, or TypeNone for a non-valid (but acceptable) index. http://www.lua.org/manual/5.2/manual.html#lua_type
lua.go:665
↓ 20 callers
Method
PushInteger
PushInteger pushes n onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushinteger
lua.go:1442
↓ 20 callers
Method
SetTop
SetTop accepts any index, or 0, and sets the stack top to index. If the new top is larger than the old one, then the new elements are filled with nil.
lua.go:556
↓ 20 callers
Method
ToString
ToString converts the Lua value at index to a Go string. The Lua value must also be a string or a number; otherwise the function returns false for i
lua.go:800
↓ 19 callers
Function
CheckNumber
(l *State, index int)
auxiliary.go:334
↓ 19 callers
Function
CheckType
CheckType checks whether the function argument at index has type t. See Type for the encoding of types for t.
auxiliary.go:294
↓ 19 callers
Function
makeExpression
(kind, info int)
code.go:282
↓ 19 callers
Method
runtimeError
(message string)
debug.go:40
↓ 18 callers
Method
String
String returns the name of Type t. http://www.lua.org/manual/5.2/manual.html#lua_typename
lua.go:1393
↓ 17 callers
Method
assert
(cond bool)
debug.go:115
↓ 17 callers
Method
close
(level int)
stack.go:103
↓ 16 callers
Method
Field
Field pushes onto the stack the value table[name], where table is the table on the stack at the given index. This call may trigger a metamethod for th
lua.go:996
↓ 16 callers
Method
ProtectedCall
ProtectedCall calls a function in protected mode. Both argCount and resultCount have the same meaning as in Call. If there are no errors during the ca
lua.go:381
↓ 16 callers
Method
checkElementCount
(n int)
lua.go:304
↓ 16 callers
Function
mathUnaryOp
(f func(float64) float64)
math.go:10
↓ 15 callers
Function
OptString
OptString returns the string at index if it is a string. If this argument is absent or is nil, returns def. Otherwise, raises an error.
auxiliary.go:327
↓ 15 callers
Method
RawGetInt
RawGetInt pushes onto the stack the value table[key] where table is the value at index on the stack. The access is raw, as it doesn't invoke metametho
lua.go:1015
↓ 15 callers
Method
arith
(rb, rc value, op tm)
vm.go:9
↓ 15 callers
Method
saveAndAdvance
()
scanner.go:131
↓ 14 callers
Method
Call
Call calls a function. To do so, use the following protocol: first, the function to be called is pushed onto the stack; then, the arguments to the fun
lua.go:1358
↓ 14 callers
Method
IsNoneOrNil
IsNoneOrNil verifies that the value at index is either nil or invalid. http://www.lua.org/manual/5.2/manual.html#lua_isnonornil.
lua.go:1526
↓ 14 callers
Function
OptInteger
(l *State, index, def int)
auxiliary.go:357
↓ 14 callers
Method
PushBoolean
PushBoolean pushes a boolean value with value b onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushboolean
lua.go:1452
↓ 14 callers
Method
freeExpression
(e exprDesc)
code.go:567
↓ 14 callers
Method
testNext
(t rune)
scanner.go:522
↓ 13 callers
Method
ExpressionToNextRegister
(e exprDesc)
code.go:677
↓ 13 callers
Method
Instruction
(e exprDesc)
code.go:294
↓ 13 callers
Method
MakeLocalVariable
(name string)
code.go:162
↓ 13 callers
Method
checkNext
(t rune)
parser.go:40
↓ 13 callers
Method
syntaxError
(message string)
scanner.go:81
↓ 13 callers
Method
toNumber
(r value)
types.go:277
↓ 12 callers
Function
CheckAny
CheckAny checks whether the function has an argument of any type (including nil) at position index.
auxiliary.go:301
↓ 12 callers
Function
LoadString
(l *State, s string)
auxiliary.go:525
↓ 12 callers
Method
isJumpListWalkable
(list int)
code.go:424
↓ 12 callers
Method
skip
()
stack.go:147
↓ 11 callers
Function
CheckUnsigned
(l *State, index int)
auxiliary.go:364
↓ 11 callers
Function
FileResult
FileResult produces the return values for file-related functions in the standard library (io.open, os.rename, file:seek, etc.).
auxiliary.go:560
↓ 11 callers
Method
expressionToRegisterOrConstant
(e exprDesc)
code.go:710
↓ 11 callers
Method
isLua
()
stack.go:143
↓ 10 callers
Method
DischargeVariables
(e exprDesc)
code.go:597
↓ 10 callers
Method
EnterBlock
(isLoop bool)
code.go:129
↓ 10 callers
Method
IsNil
IsNil verifies that the value at index is nil. http://www.lua.org/manual/5.2/manual.html#lua_isnil
lua.go:1506
↓ 10 callers
Method
LeaveBlock
()
code.go:232
↓ 10 callers
Method
RawSetInt
RawSetInt does the equivalent of table[n]=v where table is the table at index and v is the value at the top of the stack. This function pops the valu
lua.go:1123
↓ 10 callers
Method
ReserveRegisters
(n int)
code.go:555
↓ 10 callers
Function
clear
(r []value)
vm.go:276
↓ 10 callers
Method
read
(data interface{})
undump.go:33
↓ 10 callers
Method
readInt
()
undump.go:42
↓ 10 callers
Method
upValue
(i int)
stack.go:20
↓ 10 callers
Method
writeInt
(i int)
dump.go:22
↓ 9 callers
Method
PatchToHere
(list int)
code.go:507
↓ 9 callers
Method
PushUnsigned
PushUnsigned pushes n onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushunsigned
lua.go:1447
↓ 9 callers
Method
Replace
Replace moves the top element into the given valid index without shifting any element (therefore replacing the value at the given index), and then pop
lua.go:605
↓ 9 callers
Method
ToBoolean
ToBoolean converts the Lua value at index to a Go boolean. Like all tests in Lua, the only false values are false booleans and nil. Otherwise, all oth
lua.go:1411
↓ 9 callers
Method
call
Call a Go or Lua function. The function to be called is at function. The arguments are on the stack, right after the function. On return, all the resu
stack.go:370
↓ 9 callers
Method
checkMatch
(what, who rune, where int)
scanner.go:535
↓ 9 callers
Method
checkName
()
parser.go:23
↓ 9 callers
Function
expectEqual
(t *testing.T, x, y interface{}, m string)
parser_test.go:88
↓ 9 callers
Function
isFalse
(s value)
types.go:63
↓ 9 callers
Method
save
(c rune)
scanner.go:141
↓ 9 callers
Method
scanError
(message string, token rune)
scanner.go:101
↓ 9 callers
Method
setTop
(top int)
stack.go:150
↓ 9 callers
Method
tableAt
(t value, key value)
vm.go:22
↓ 9 callers
Function
validate
(expected, actual interface{}, description string, t *testing.T)
undump_test.go:85
↓ 8 callers
Method
Concatenate
(l1, l2 int)
code.go:515
↓ 8 callers
Method
ExpressionToAnyRegister
(e exprDesc)
code.go:684
next →
1–100 of 673, ranked by callers