@idlizer/core 2.0.36 → 2.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,7 +16,7 @@ import * as idl from "../idl";
|
|
|
16
16
|
import { Language } from "../Language";
|
|
17
17
|
import { PrintHint, BlockStatement, StringExpression } from "./LanguageWriter";
|
|
18
18
|
import { RuntimeType } from "./common";
|
|
19
|
-
import { generatorTypePrefix } from "../config";
|
|
19
|
+
import { generatorConfiguration, generatorTypePrefix } from "../config";
|
|
20
20
|
import { hashCodeFromString, warn } from "../util";
|
|
21
21
|
import { UnionRuntimeTypeChecker } from "../peer-generation/unions";
|
|
22
22
|
import { CppNameConvertor } from "./convertors/CppConvertors";
|
|
@@ -894,7 +894,7 @@ export class MaterializedClassConvertor extends BaseArgConvertor {
|
|
|
894
894
|
convertorArg(param, writer) {
|
|
895
895
|
switch (writer.language) {
|
|
896
896
|
case Language.CPP:
|
|
897
|
-
return `static_cast<${
|
|
897
|
+
return `static_cast<${generatorConfiguration().TypePrefix}${this.declaration.name}>(${param})`;
|
|
898
898
|
case Language.JAVA:
|
|
899
899
|
case Language.CJ:
|
|
900
900
|
return `MaterializedBase.toPeerPtr(${param})`;
|