mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 09:47:17 +00:00
Added a getter to the new pointer type.
This commit is contained in:
parent
95e54c66b6
commit
41bb6a9833
@ -96,6 +96,7 @@ DEFINE_GETTER(fiber, FIBER, JanetFiber *)
|
|||||||
DEFINE_GETTER(function, FUNCTION, JanetFunction *)
|
DEFINE_GETTER(function, FUNCTION, JanetFunction *)
|
||||||
DEFINE_GETTER(cfunction, CFUNCTION, JanetCFunction)
|
DEFINE_GETTER(cfunction, CFUNCTION, JanetCFunction)
|
||||||
DEFINE_GETTER(boolean, BOOLEAN, int)
|
DEFINE_GETTER(boolean, BOOLEAN, int)
|
||||||
|
DEFINE_GETTER(pointer, POINTER, void *)
|
||||||
|
|
||||||
int32_t janet_getinteger(const Janet *argv, int32_t n) {
|
int32_t janet_getinteger(const Janet *argv, int32_t n) {
|
||||||
Janet x = argv[n];
|
Janet x = argv[n];
|
||||||
|
@ -1247,6 +1247,7 @@ JANET_API JanetFiber *janet_getfiber(const Janet *argv, int32_t n);
|
|||||||
JANET_API JanetFunction *janet_getfunction(const Janet *argv, int32_t n);
|
JANET_API JanetFunction *janet_getfunction(const Janet *argv, int32_t n);
|
||||||
JANET_API JanetCFunction janet_getcfunction(const Janet *argv, int32_t n);
|
JANET_API JanetCFunction janet_getcfunction(const Janet *argv, int32_t n);
|
||||||
JANET_API int janet_getboolean(const Janet *argv, int32_t n);
|
JANET_API int janet_getboolean(const Janet *argv, int32_t n);
|
||||||
|
JANET_API void *janet_getpointer(const Janet *argv, int32_t n);
|
||||||
|
|
||||||
JANET_API int32_t janet_getinteger(const Janet *argv, int32_t n);
|
JANET_API int32_t janet_getinteger(const Janet *argv, int32_t n);
|
||||||
JANET_API int64_t janet_getinteger64(const Janet *argv, int32_t n);
|
JANET_API int64_t janet_getinteger64(const Janet *argv, int32_t n);
|
||||||
|
Loading…
Reference in New Issue
Block a user