Utilities.xtend 359 B

12345678910111213141516171819
  1. package be.uantwerpen.ansymo.semanticadaptation.cg.cpp.generation
  2. class Utilities {
  3. def static String getDebug(String functionName){
  4. return '''
  5. #ifdef SA_DEBUG
  6. printf("Invoking «functionName»");
  7. #endif SA_DEBUG ''';
  8. }
  9. def static String getDebug2(String printf){
  10. return '''
  11. #ifdef SA_DEBUG
  12. «printf»
  13. #endif SA_DEBUG ''';
  14. }
  15. }