Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua progress: Stack Non-Mutating #13

Open
35 of 51 tasks
Possseidon opened this issue Jan 24, 2021 · 0 comments
Open
35 of 51 tasks

Lua progress: Stack Non-Mutating #13

Possseidon opened this issue Jan 24, 2021 · 0 comments
Assignees
Labels
dang-lua enhancement New feature or request

Comments

@Possseidon
Copy link
Owner

Possseidon commented Jan 24, 2021

Stack Non-Mutating

The progress on Stack related Lua functions that do not mutate the Stack and can therefore be const.

Core Library

  • lua_absindex
  • lua_checkstack used in State::checkPushable
  • lua_compare used in State::compare
  • lua_dump use in State::dump
  • lua_error used indirectly in State::error with a [[noreturn]] wrapper
  • lua_gettop used once in State::State and for LUA_MULTRET calls
  • lua_isboolean used in Convert<bool> and State::isBoolean
  • lua_iscfunction used in Convert<lua_CFunction> and State::isCFunction
  • lua_isfunction used in State::isFunction
  • lua_isinteger used in State::isInteger
  • lua_islightuserdata used in State::isLightUserdata
  • lua_isnil used in ConvertNil and State::isNil
  • lua_isnone used in State::isNone
  • lua_isnoneornil used in ConvertNil, Convert<std::optional<T>> and State::isNoneOrNil
  • lua_isnumber used in ConvertFloatingPoint and State::isNumber
  • lua_isstring used in Convert<std::string>, Convert<std::string_view> and State::isString
  • lua_istable used in State::isTable
  • lua_isthread used in State::isThread
  • lua_isuserdata used in State::isUserdata
  • lua_rawequal
  • lua_rawlen used in State::rawLength
  • lua_toboolean used in Convert<bool>
  • lua_tocfunction used in Convert<lua_CFunction>
  • lua_tointeger
  • lua_tointegerx used in ConvertIntegral
  • lua_tonumber
  • lua_tonumberx used in ConvertFloatingPoint
  • lua_topointer
  • lua_tothread
  • lua_touserdata only used in Convert::cleanup currently
  • lua_type used in various Convert templates and State::type

Auxiliary Library

  • luaL_argcheck
  • luaL_argerror used in various Convert templates and State::argError
  • luaL_argexpected
  • luaL_checkany
  • luaL_checkinteger used in ConvertIntegral
  • luaL_checknumber used in ConvertFloatingPoint
  • luaL_checkoption used in Convert for enums
  • luaL_checkstack used in State::ensurePushable and wrap
  • luaL_checktype
  • luaL_checkudata used in Convert for userdata, always failing, just to get a good error message
  • luaL_error
  • luaL_len used in State::length
  • luaL_opt
  • luaL_optinteger
  • luaL_optnumber
  • luaL_setmetatable
  • luaL_testudata used in Convert for userdata
  • luaL_typeerror used indirectly in State::typeError with a [[noreturn]] wrapper
  • luaL_typename used in Convert<std::variant<T...>> and State::typeName
  • luaL_unref used in Reference::~Reference
@Possseidon Possseidon added the enhancement New feature or request label Jan 24, 2021
@Possseidon Possseidon self-assigned this Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dang-lua enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant