Skip to content

Commit e4b80e9

Browse files
committed
[js] Add a bunch of C_TYPE_* constants.
1 parent e997347 commit e4b80e9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/vm/js/QAST/Compiler.nqp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,17 @@ my %const_map := nqp::hash(
306306
'PIPE_INHERIT_ERR', 64,
307307
'PIPE_IGNORE_ERR', 128,
308308
'PIPE_CAPTURE_ERR', 256,
309+
310+
'C_TYPE_CHAR', -1,
311+
'C_TYPE_SHORT', -2,
312+
'C_TYPE_INT', -3,
313+
'C_TYPE_LONG', -4,
314+
'C_TYPE_LONGLONG', -5,
315+
'C_TYPE_SIZE_T', -6,
316+
'C_TYPE_BOOL', -7,
317+
'C_TYPE_FLOAT', -1,
318+
'C_TYPE_DOUBLE', -2,
319+
'C_TYPE_LONGDOUBLE', -3,
309320
);
310321

311322
# Holds information about the javascript loop we are emitting code inside of.

0 commit comments

Comments
 (0)