Utilities.xtend 393 B

123456789101112131415161718192021
  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. printf("\n");
  8. #endif SA_DEBUG ''';
  9. }
  10. def static String getDebug2(String printf){
  11. return '''
  12. #ifdef SA_DEBUG
  13. «printf»
  14. printf("\n");
  15. #endif SA_DEBUG ''';
  16. }
  17. }