|
@@ -255,7 +255,7 @@ let add_constructor ctx c force_constructor p =
|
|
|
let null () = Some (Texpr.Builder.make_null v.v_type v.v_pos) in
|
|
|
match ctx.com.platform, def with
|
|
|
| _, Some _ when not ctx.com.config.pf_static -> v, null()
|
|
|
- | Flash, Some ({eexpr = TConst (TString _)}) -> v, null()
|
|
|
+ | Flash, Some ({eexpr = TConst (TString _)}) when not csup.cl_extern -> v, null()
|
|
|
| Cpp, Some ({eexpr = TConst (TString _)}) -> v, def
|
|
|
| Cpp, Some _ -> { v with v_type = ctx.t.tnull v.v_type }, null()
|
|
|
| _ -> v, def
|