ANN m_uint get_depth(const Type type);
typedef enum {
- et_void, et_int, et_bool, et_float, et_complex, et_polar, et_vec3, et_vec4,
+ et_void, et_int, et_bool, et_char, et_float, et_complex, et_polar, et_vec3, et_vec4,
et_null, et_object, et_shred, et_fork, et_event, et_ugen, et_string, et_ptr, et_array, et_gack,
et_function, et_fptr, et_varloop, et_vararg, et_lambda, et_class, et_union, et_undefined, et_auto, et_tuple,
MAX_TYPE
printf("%li", *(m_uint*)VALUE);
}
+static GACK(gack_char) {
+ printf("%c", *(char*)VALUE);
+}
+
static GACK(gack_float) {
printf("%.4f", *(m_float*)VALUE);
}
const Type t_int = gwi_mk_type(gwi, "int", SZ_INT, NULL);
GWI_BB(gwi_gack(gwi, t_int, gack_int))
GWI_BB(gwi_set_global_type(gwi, t_int, et_int))
+ const Type t_char = gwi_mk_type(gwi, "char", SZ_INT, "int");
+ GWI_BB(gwi_gack(gwi, t_char, gack_char))
+ GWI_BB(gwi_set_global_type(gwi, t_char, et_char))
const Type t_float = gwi_mk_type(gwi, "float", SZ_FLOAT, NULL);
GWI_BB(gwi_gack(gwi, t_float, gack_float))
GWI_BB(gwi_set_global_type(gwi, t_float, et_float))