Slight remodeling of C.tmbundle's Run command:

  • Use TM_GXX to override the compiler in C++ mode, instead of TM_GPP.
  • You may set TM_GCC_FLAGS / TM_GXX_FLAGS to add compiler flags in C / C++ 
mode respectively.  Note that these strings will be subject to bash expansion, 
so you may include environment variables such as $HOME.
  • Default TM_GCC_FLAGS="-Wall -include stdio.h". Default TM_GXX_FLAGS=" -Wall 
-include stdio.h -include iostream"
    So you can run a script like: int main() { printf("Hello, World!"); return 
0; } and it will *just work*.

Changed:
U   trunk/Bundles/C.tmbundle/Commands/Run.tmCommand
U   trunk/Bundles/C.tmbundle/Support/bin/bootstrap.sh

_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to