-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
c api[Area] Related to the Tarantool C API reference[Area] Related to the Tarantool C API referencedevTo be updated by the developers. Includes developer guidelines and many API elements.To be updated by the developers. Includes developer guidelines and many API elements.
Description
The following functions are added into the module API:
/**
* Allocate a new decimal on the Lua stack and return
* a pointer to it.
*/
API_EXPORT box_decimal_t *
luaT_newdecimal(struct lua_State *L);
/**
* Allocate a new decimal on the Lua stack with copy of given
* decimal and return a pointer to it.
*/
API_EXPORT box_decimal_t *
luaT_pushdecimal(struct lua_State *L, const box_decimal_t *dec);
/**
* Check whether a value on the Lua stack is a decimal.
*
* Returns a pointer to the decimal on a successful check,
* NULL otherwise.
*/
API_EXPORT box_decimal_t *
luaT_isdecimal(struct lua_State *L, int index);
Requested by @Totktonada in tarantool/tarantool@c75fbce.
Metadata
Metadata
Assignees
Labels
c api[Area] Related to the Tarantool C API reference[Area] Related to the Tarantool C API referencedevTo be updated by the developers. Includes developer guidelines and many API elements.To be updated by the developers. Includes developer guidelines and many API elements.