MCPcopy Index your code
hub / github.com/yuin/gopher-lua / DoString

Method DoString

auxlib.go:405–412  ·  view source on GitHub ↗
(source string)

Source from the content-addressed store, hash-verified

403}
404
405func (ls *LState) DoString(source string) error {
406 if fn, err := ls.LoadString(source); err != nil {
407 return err
408 } else {
409 ls.Push(fn)
410 return ls.PCall(0, MultRet, nil)
411 }
412}
413
414/* }}} */
415

Callers 13

TestTableLenTypeFunction · 0.80
errorIfScriptFailFunction · 0.80
errorIfScriptNotFailFunction · 0.80
TestContextTimeoutFunction · 0.80
TestContextCancelFunction · 0.80
TestContextWithCroutineFunction · 0.80
TestOsWriteFunction · 0.80
TestLocalVarFreeFunction · 0.80
TestMergingLoadNilBug2Function · 0.80
TestMergingLoadNilBugFunction · 0.80
TestChannelSelect1Function · 0.80
mainAuxFunction · 0.80

Calls 3

LoadStringMethod · 0.95
PushMethod · 0.95
PCallMethod · 0.95

Tested by 11

TestTableLenTypeFunction · 0.64
errorIfScriptFailFunction · 0.64
errorIfScriptNotFailFunction · 0.64
TestContextTimeoutFunction · 0.64
TestContextCancelFunction · 0.64
TestContextWithCroutineFunction · 0.64
TestOsWriteFunction · 0.64
TestLocalVarFreeFunction · 0.64
TestMergingLoadNilBug2Function · 0.64
TestMergingLoadNilBugFunction · 0.64
TestChannelSelect1Function · 0.64