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));
21 KRK_DOC(module,
"Character widths.");
22 BIND_FUNC(module, wcwidth);
25 setlocale(LC_ALL,
"");
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.