pike.git
/
src
/
operators.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/operators.c:5499:
} return NULL; } static int generate_sizeof(node *n) { struct compilation *c = THIS_COMPILATION; if(count_args(CDR(n)) != 1) return 0; if(do_docode(CDR(n),DO_NOT_COPY) != 1) Pike_fatal("Count args was wrong in sizeof().\n");
+
if( pike_types_le( my_get_arg(&CDR(n), 0)[0]->type, string_type_string ) )
+
emit0(F_SIZEOF_STRING);
+
/* else if( pike_types_le( my_get_arg(&CDR(n), 0)[0]->type, array_type_string ) ) */
+
/* emit0(F_SIZEOF_ARRAY); */
+
else
emit0(F_SIZEOF); return 1; } extern int generate_call_function(node *n); /*! @decl void _Static_assert(int constant_expression, string constant_message) *! *! Perform a compile-time assertion check. *!