You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2019. It is now read-only.
"Generates type for external function argument or return value."
4374
4374
::=
4375
4375
let s = match type
4376
-
case T_INTEGER(__) then "int"
4376
+
case T_INTEGER(__) then "int"
4377
4377
case T_REAL(__) then "double"
4378
4378
case T_STRING(__) then "const char*"
4379
4379
case T_BOOL(__) then "int"
4380
4380
case T_ENUMERATION(__) then "int"
4381
4381
case T_ARRAY(__) then extType2(ty,isInput,true)
4382
4382
case T_COMPLEX(complexClassType=EXTERNAL_OBJ(__))
4383
-
then "void*"
4383
+
then "void*"
4384
4384
case T_COMPLEX(complexClassType=RECORD(path=rname))
4385
-
then 'struct <%underscorePath(rname)%>'
4385
+
then 'struct <%underscorePath(rname)%>'
4386
4386
case T_METATYPE(__) case T_METABOXED(__) then "modelica_metatype"
4387
4387
else error(sourceInfo(), 'Unknown external C type <%unparseType(type)%>')
4388
4388
match type case T_ARRAY(__) then s else if isInput then (if isArray then '<%match s case "const char*" then "" else "const "%><%s%>*' else s) else '<%s%>*'
0 commit comments