Skip to content

Commit

Permalink
CPP: update based on merge with next branch
Browse files Browse the repository at this point in the history
  • Loading branch information
HaseenaSainul committed Mar 5, 2024
1 parent 326dfae commit 5269a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macrofier/types.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ const insertTupleMacros = (content, schema, module, title, options) => {

const getPrimitiveType = (type, templateDir = 'types') => {
const template = getTemplate(path.join(templateDir, type)) || getTemplate(path.join(templateDir, 'generic'))
return (primitives[type] || template)
return (title ? template || primitives[type] || template)
}

const pickBestType = types => Array.isArray(types) ? types.find(t => t !== 'null') : types
Expand Down

0 comments on commit 5269a3d

Please sign in to comment.