(l *lua.State)
| 86 | const arrayMarkerField = "_is_array" |
| 87 | |
| 88 | func luaArray(l *lua.State) int { |
| 89 | l.NewTable() |
| 90 | l.PushBoolean(true) |
| 91 | l.SetField(-2, arrayMarkerField) |
| 92 | l.SetMetaTable(-2) |
| 93 | return 1 |
| 94 | } |
| 95 | |
| 96 | func isArray(l *lua.State, idx int) bool { |
| 97 | if !l.IsTable(idx) { |
no outgoing calls
no test coverage detected