Skip to content

Commit 92af4cd

Browse files
committed
Refs #23079. Directors only necessary when there are interfaces.
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
1 parent 8897346 commit 92af4cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/eprosima/fastcdr/idl/templates/TypesSwigInterface.stg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import "FastCdrCommon.stg"
2020
main(ctx, definitions) ::= <<
2121
$fileHeader(ctx=ctx, file=[ctx.filename, ".i"], description=["This header file contains the SWIG interface of the described types in the IDL file."])$
2222

23-
%module($if(ctx.thereIsInterface)$threads="1",$endif$directors="1",moduleimport="if __import__('os').name == 'nt': import win32api; win32api.LoadLibrary('$ctx.filename$.dll')\nif __package__ or '.' in __name__:\n from . import _$ctx.filename$Wrapper\nelse:\n import _$ctx.filename$Wrapper") $ctx.filename$
23+
%module($if(ctx.thereIsInterface)$threads="1",directors="1",$endif$moduleimport="if __import__('os').name == 'nt': import win32api; win32api.LoadLibrary('$ctx.filename$.dll')\nif __package__ or '.' in __name__:\n from . import _$ctx.filename$Wrapper\nelse:\n import _$ctx.filename$Wrapper") $ctx.filename$
2424

2525
$if(ctx.thereIsInterface)$
2626
// We have enabled threads because the RPC server directors will call the target language environment

0 commit comments

Comments
 (0)