ansys.scade.wux.wux.gen_start_protect#
- ansys.scade.wux.wux.gen_start_protect(f: io.TextIOBase, name: str)#
Write the beginning of a protection macro for a
C
header file.The dots (
.
) present in name are replaced by underscores (_
).The name of the macro is uppercase.
The function writes the following snippet:
#ifndef _NAME_ #define _NAME_
- Parameters:
- f
TextIOBase
Output file to write to.
- name
str
Name of the preprocessor macro.
- f