Current section

Files

Jump to
glua src glua@lib@table.erl
Raw

src/glua@lib@table.erl

-module(glua@lib@table).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/glua/lib/table.gleam").
-export([concat/0, insert/0, pack/0, remove/0, sort/0, unpack/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(" Bindings to the functions under `_G.table`\n").
-file("src/glua/lib/table.gleam", 7).
?DOC(" Returns the `table.concat` function.\n").
-spec concat() -> glua:value().
concat() ->
glua_stdlib_ffi:table_concat().
-file("src/glua/lib/table.gleam", 11).
?DOC(" Returns the `table.insert` function.\n").
-spec insert() -> glua:value().
insert() ->
glua_stdlib_ffi:table_insert().
-file("src/glua/lib/table.gleam", 15).
?DOC(" Returns the `table.pack` function.\n").
-spec pack() -> glua:value().
pack() ->
glua_stdlib_ffi:table_pack().
-file("src/glua/lib/table.gleam", 19).
?DOC(" Returns the `table.remove` function.\n").
-spec remove() -> glua:value().
remove() ->
glua_stdlib_ffi:table_remove().
-file("src/glua/lib/table.gleam", 23).
?DOC(" Returns the `table.sort` function.\n").
-spec sort() -> glua:value().
sort() ->
glua_stdlib_ffi:table_sort().
-file("src/glua/lib/table.gleam", 27).
?DOC(" Returns the `table.unpack` function.\n").
-spec unpack() -> glua:value().
unpack() ->
glua_stdlib_ffi:table_unpack().