Opened 14 years ago

Last modified 14 years ago

#1457 closed defect (fixed)

External objects may cause #include to be processed many times

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Version:
Keywords: Cc: Martin Sjölund,

Description

Generate #include-directive only _once_ (not in the header-file!)
{{{ class ShapeObject "ShapeObject"

extends ExternalObject;
function constructor

output ShapeObject component;
external "C" component = initShapeObject();
annotation(dll="expblend.dll",Include="#include <expblend.c>");

end constructor;

function destructor "Release storage of table"

input ShapeObject component;
external "C" closeShapeObject(component);
annotation(dll="expblend.dll",Include="#include <expblend.c>");

end destructor;

end ShapeObject;

}}}

Change History (1)

comment:1 by Martin Sjölund, 14 years ago

Resolved in r8329

Note: See TracTickets for help on using tickets.