Skip to content
代码片段 群组 项目
提交 aa357106 编辑于 作者: Timotej Ecimovic's avatar Timotej Ecimovic
浏览文件

Allow numeric argument to ident.

上级 c0898b41
No related branches found
No related tags found
无相关合并请求
......@@ -35,8 +35,12 @@ function zap_header() {
*
* @returns whitespace that is the identation.
*/
function ident() {
return ' '
function ident(cnt) {
if (Number.isInteger(cnt)) {
return ' '.repeat(cnt)
} else {
return ' '
}
}
// WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
......
......@@ -2,6 +2,14 @@
#define FIXED_ENPOINT_COUNT ({{user_endpoint_type_count}})
#define GENERATED_DEFAULTS {
}
#define GENERATED_MIN_MAX_DEFAULTS {
}
{{#user_endpoint_types}}
// Endpoint: {{endpointTypeId}}, {{name}} / Device Type: {{deviceTypeName}}, {{deviceTypeCode}}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册