8 extern int wcwidth(
wchar_t c);
11 #include "../wcwidth._h"
14 KRK_Function(wcwidth) {
15 FUNCTION_TAKES_EXACTLY(1);
16 CHECK_ARG(0,
int,krk_integer_type,codepoint);
17 return INTEGER_VAL(wcwidth(codepoint));
20 KrkValue krk_module_onload_wcwidth(
void) {
23 KRK_DOC(module,
"Character widths.");
24 BIND_FUNC(module, wcwidth);
27 setlocale(LC_ALL,
"");
KrkInstance * krk_newInstance(KrkClass *_class)
Create a new instance of the given class.
Stack reference or primative value.
Utilities for creating native bindings.
#define KRK_DOC(thing, text)
Attach documentation to a thing of various types.
Core API for the bytecode virtual machine.
#define vm
Convenience macro for namespacing.
KrkValue krk_pop(void)
Pop the top of the stack.
void krk_push(KrkValue value)
Push a stack value.