MCPcopy Create free account
hub / github.com/defold/defold / add_c_docs

Function add_c_docs

scripts/dmsdk/gen_cpp.py:150–158  ·  view source on GitHub ↗
(docs)

Source from the content-addressed store, hash-verified

148 return '%s %s(%s)' % (ret_type, decl['name'], ', '.join(args))
149
150def add_c_docs(docs):
151 for doc in docs['items']:
152 if not 'name' in doc:
153 import pprint
154 pprint.pp(doc)
155 name = doc['name']
156 out = gen_doc(docs, name, name, indent=0, language='C')
157 l(out)
158 l('')
159
160def gen_cpp_header(basepath, c_header_path, out_path, info, ast, state, includes, docs):
161 _reset_globals()

Callers 1

gen_cpp_headerFunction · 0.85

Calls 2

gen_docFunction · 0.70
lFunction · 0.70

Tested by

no test coverage detected