Advertisement
Guest User

Untitled

a guest
Mar 16th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. // Statically declared class members, this is vscProject.cpp
  2. // ofJson declaration builds and works, string declaration builds but crashes horribly
  3.  
  4.  
  5. ofJson vscProject::templateTasksJson = R"(
  6. {
  7. "version": "0.1.0",
  8. "showOutput": "always",
  9. "echoCommand": true,
  10. "tasks": [
  11. {
  12. "taskName": "build",
  13. "command": "dummy",
  14. "isBuildCommand": true,
  15. "isShellCommand": true,
  16. "windows": {
  17. "command": "echo",
  18. "args": ["TODO"]
  19. },
  20. "linux": {
  21. "command": "echo",
  22. "args": ["TODO"]
  23. },
  24. "osx": {
  25. "command": "echo",
  26. "args": ["TODO"]
  27. }
  28. }
  29. ]
  30. }
  31. )"_json;
  32.  
  33.  
  34. string vscProject::templateTasksJson = R"(
  35. {
  36. "version": "0.1.0",
  37. "showOutput": "always",
  38. "echoCommand": true,
  39. "tasks": [
  40. {
  41. "taskName": "build",
  42. "command": "dummy",
  43. "isBuildCommand": true,
  44. "isShellCommand": true,
  45. "windows": {
  46. "command": "echo",
  47. "args": ["TODO"]
  48. },
  49. "linux": {
  50. "command": "echo",
  51. "args": ["TODO"]
  52. },
  53. "osx": {
  54. "command": "echo",
  55. "args": ["TODO"]
  56. }
  57. }
  58. ]
  59. }
  60. )"_json;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement