fx.reflection: fix fx_string type marshalling
This commit is contained in:
@@ -75,8 +75,9 @@ static void push_arg(
|
||||
unsigned int param_value_type = __fx_type_get_value_type(param_type);
|
||||
if (param_value_type == __FX_VALUE_TYPE_CSTR
|
||||
&& fx_value_is_type(arg, FX_TYPE_STRING)) {
|
||||
fx_value cstr = FX_CSTR(
|
||||
fx_string_get_cstr(fx_value_get_object_c(arg)));
|
||||
fx_object *obj;
|
||||
fx_value_get_object(arg, &obj);
|
||||
fx_value cstr = FX_CSTR(fx_string_get_cstr(obj));
|
||||
callvm_push(vm, &cstr);
|
||||
return;
|
||||
}
|
||||
@@ -227,8 +228,7 @@ static void function_fini(fx_object *obj, void *priv)
|
||||
}
|
||||
}
|
||||
|
||||
/*** CLASS DEFINITION
|
||||
* *********************************************************/
|
||||
/*** CLASS DEFINITION *********************************************************/
|
||||
|
||||
FX_TYPE_CLASS_BEGIN(fx_function)
|
||||
FX_TYPE_VTABLE_INTERFACE_BEGIN(fx_object, FX_TYPE_OBJECT)
|
||||
|
||||
Reference in New Issue
Block a user