MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / codegen_create_directories

Function codegen_create_directories

src/tinympc/codegen.cpp:104–125  ·  view source on GitHub ↗

Create code generation folder structure in whichever directory the executable calling tiny_codegen was called

Source from the content-addressed store, hash-verified

102
103// Create code generation folder structure in whichever directory the executable calling tiny_codegen was called
104int codegen_create_directories(const char* output_dir, int verbose) {
105
106 // Create output folder (root folder for code generation)
107 create_directory(output_dir, verbose);
108
109 // Create src folder
110 char src_dir[PATH_LENGTH];
111 sprintf(src_dir, "%s/src/", output_dir);
112 create_directory(src_dir, verbose);
113
114 // Create tinympc folder
115 char tinympc_dir[PATH_LENGTH];
116 sprintf(tinympc_dir, "%s/tinympc/", output_dir);
117 create_directory(tinympc_dir, verbose);
118
119 // // Create include folder
120 // char inc_dir[PATH_LENGTH];
121 // sprintf(inc_dir, "%s/include/", output_dir);
122 // create_directory(inc_dir, verbose);
123
124 return EXIT_SUCCESS;
125}
126
127// Create inc/tiny_data.hpp file
128int codegen_data_header(const char* output_dir, int verbose) {

Callers 1

tiny_codegenFunction · 0.85

Calls 1

create_directoryFunction · 0.85

Tested by

no test coverage detected