diff --git a/src/ammer/stub/StubCpp.hx b/src/ammer/stub/StubCpp.hx index b97c0fd..b892cc2 100644 --- a/src/ammer/stub/StubCpp.hx +++ b/src/ammer/stub/StubCpp.hx @@ -10,8 +10,9 @@ class StubCpp { static var lb:LineBuf; static function generateHeader():Void { + lb.ai("#include \n"); for (header in library.headers) - lb.a('#include <${header}>\n'); + lb.ai('#include <${header}>\n'); } static function mapTypeC(t:FFIType, name:String, closure:Bool = false):String { diff --git a/src/ammer/stub/StubHl.hx b/src/ammer/stub/StubHl.hx index 2685549..ebc2a6a 100644 --- a/src/ammer/stub/StubHl.hx +++ b/src/ammer/stub/StubHl.hx @@ -17,10 +17,11 @@ class StubHl { static var lb:LineBuf; static function generateHeader():Void { - lb.a('#define HL_NAME(n) ammer_${library.name}_ ## n\n'); - lb.a('#include \n'); + lb.ai('#define HL_NAME(n) ammer_${library.name}_ ## n\n'); + lb.ai("#include \n"); + lb.ai("#include \n"); for (header in library.headers) - lb.a('#include <${header}>\n'); + lb.ai('#include <${header}>\n'); } static function mapTypeHlFFI(t:FFIType):String { diff --git a/src/ammer/stub/StubLua.hx b/src/ammer/stub/StubLua.hx index a734573..7b0fae9 100644 --- a/src/ammer/stub/StubLua.hx +++ b/src/ammer/stub/StubLua.hx @@ -20,9 +20,10 @@ class StubLua { lb.ai("#ifdef __cplusplus\n"); lb.ai("extern \"C\" {\n"); lb.ai("#endif\n"); - lb.ai('#include \n'); - lb.ai('#include \n'); - lb.ai('#include \n'); + lb.ai("#include \n"); + lb.ai("#include \n"); + lb.ai("#include \n"); + lb.ai("#include \n"); lb.ai("#ifdef __cplusplus\n"); lb.ai("}\n"); lb.ai("#endif\n");