Add public max_incl_workbuf_len constants

This commit is contained in:
Nigel Tao committed 2019-02-02 15:51:04 +11:00
1 parent c9830ceb9a
commit be2d96bb27
8 files changed
+35 -2

No files matched your search

+2 -1
View File
@@ -264,7 +264,8 @@ func (h *genHelper) genWuffs(dirname string, qualifiedFilenames []string) error
if !n.Public() {
continue
}
return fmt.Errorf("TODO: genWuffs for consts")
fmt.Fprintf(out, "pub const %s %s = %v\n",
n.QID().Str(&h.tm), n.XType().Str(&h.tm), n.Value().Str(&h.tm))
case a.KFunc:
n := n.AsFunc()