From 9107650076ebe6e159356d970b0523dc37a55147 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Sun, 2 Aug 2015 13:42:16 -0700 Subject: [PATCH] Adding support for multi-line defines --- backends/kiibohd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/kiibohd.py b/backends/kiibohd.py index c03f853..9f47150 100644 --- a/backends/kiibohd.py +++ b/backends/kiibohd.py @@ -123,7 +123,7 @@ class Backend( BackendBase ): # Iterate through defines and lookup the variables for define in variables.defines.keys(): if define in variables.overallVariables.keys(): - self.fill_dict['Defines'] += "\n#define {0} {1}".format( variables.defines[ define ], variables.overallVariables[ define ] ) + self.fill_dict['Defines'] += "\n#define {0} {1}".format( variables.defines[ define ], variables.overallVariables[ define ].replace( '\n', ' \\\n' ) ) else: print( "{0} '{1}' not defined...".format( WARNING, define ) )