Current section
Files
Jump to
Current section
Files
src/glua@lib@os.erl
-module(glua@lib@os).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/glua/lib/os.gleam").
-export([clock/0, date/0, difftime/0, execute/0, exit/0, getenv/0, remove/0, rename/0, time/0, tmpname/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.os`\n").
-file("src/glua/lib/os.gleam", 7).
?DOC(" Returns the `os.clock` function.\n").
-spec clock() -> glua:value().
clock() ->
glua_stdlib_ffi:os_clock().
-file("src/glua/lib/os.gleam", 11).
?DOC(" Returns the `os.date` function.\n").
-spec date() -> glua:value().
date() ->
glua_stdlib_ffi:os_date().
-file("src/glua/lib/os.gleam", 15).
?DOC(" Returns the `os.difftime` function.\n").
-spec difftime() -> glua:value().
difftime() ->
glua_stdlib_ffi:os_difftime().
-file("src/glua/lib/os.gleam", 19).
?DOC(" Returns the `os.execute` function.\n").
-spec execute() -> glua:value().
execute() ->
glua_stdlib_ffi:os_execute().
-file("src/glua/lib/os.gleam", 23).
?DOC(" Returns the `os.exit` function.\n").
-spec exit() -> glua:value().
exit() ->
glua_stdlib_ffi:os_exit().
-file("src/glua/lib/os.gleam", 27).
?DOC(" Returns the `os.getenv` function.\n").
-spec getenv() -> glua:value().
getenv() ->
glua_stdlib_ffi:os_getenv().
-file("src/glua/lib/os.gleam", 31).
?DOC(" Returns the `os.remove` function.\n").
-spec remove() -> glua:value().
remove() ->
glua_stdlib_ffi:os_remove().
-file("src/glua/lib/os.gleam", 35).
?DOC(" Returns the `os.rename` function.\n").
-spec rename() -> glua:value().
rename() ->
glua_stdlib_ffi:os_rename().
-file("src/glua/lib/os.gleam", 39).
?DOC(" Returns the `os.time` function.\n").
-spec time() -> glua:value().
time() ->
glua_stdlib_ffi:os_time().
-file("src/glua/lib/os.gleam", 43).
?DOC(" Returns the `os.tmpname` function.\n").
-spec tmpname() -> glua:value().
tmpname() ->
glua_stdlib_ffi:os_tmpname().