Skip to content
Snippets Groups Projects
Commit d4d26cd5 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[!341] Assert that program is called with ini file

Merge branch 'feature/driver-assert-ini-file' into 'master'

See merge request [extensions/dune-codegen!341]

  [extensions/dune-codegen!341]: Noneextensions/dune-codegen/merge_requests/341
parents db22f46d c2335013
No related branches found
No related tags found
No related merge requests found
......@@ -288,6 +288,13 @@ def generate_driver():
contents = []
# Assert that this program was called with ini file
contents += ['if (argc != 2){',
' std::cerr << "This program needs to be called with an ini file" << std::endl;',
' return 1;',
'}',
'']
def add_section(tag, comment):
tagcontents = [i for i in retrieve_cache_items("preamble and {}".format(tag), make_generable=True)]
if tagcontents:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment