Interfacing with C++ -- 'extern "C"'
This commit is contained in:
parent
2ca0cd8be1
commit
a14539d5ec
1 changed files with 9 additions and 0 deletions
|
@ -282,6 +282,10 @@ public_header.write("\n" + ubox + tab + "||" + lspaces * " " + "___ _ _ ___ _
|
|||
tab + "||" + lspaces * " " + "| |__| |__] |___ | |___ | |__| | \| |___ | | |__| | \| ___]" + rspaces * " " + "||\n" +
|
||||
tab + "||" + (116 - len(tab)) * " " + "||\n" + lbox)
|
||||
|
||||
public_header.write("\n" + tab + "#ifdef __cplusplus\n" +
|
||||
tab + "extern \"C\" {\n" +
|
||||
tab + "#endif\n\n")
|
||||
|
||||
files = os.listdir("include/library/private")
|
||||
printFlg = False
|
||||
ltab = 0
|
||||
|
@ -327,5 +331,10 @@ for file in files:
|
|||
public_header.write(buff)
|
||||
buff = line
|
||||
f.close
|
||||
|
||||
public_header.write("\n" + tab + "#ifdef __cplusplus\n" +
|
||||
tab + "}\n" +
|
||||
tab + "#endif\n\n")
|
||||
|
||||
public_header.write("#endif")
|
||||
public_header.close
|
Loading…
Reference in a new issue