-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathccode.go
41 lines (32 loc) · 878 Bytes
/
ccode.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package ccode
import (
base "github.com/jurgen-kluft/ccode/ccode-base"
"github.com/jurgen-kluft/ccode/denv"
)
// Init will initialize ccode before anything else is run
func Init() bool {
return base.Init()
}
// Generate is the main function that requires 'arguments' to then generate
// workspace and project files for a specified IDE.
func Generate(pkg *denv.Package) error {
return base.Generate(pkg)
}
func GenerateGitIgnore() {
base.GenerateGitIgnore()
}
func GenerateTestMainCpp(has_ccore, has_cbase bool) {
base.GenerateTestMainCpp(has_ccore, has_cbase)
}
func GenerateEmbedded() {
base.GenerateEmbedded()
}
func GenerateClangFormat() {
base.GenerateClangFormat()
}
func GenerateFiles(pkg *denv.Package) {
base.GenerateFiles(pkg)
}
func GenerateCppEnums(inputFile string, outputFile string) error {
return base.GenerateCppEnums(inputFile, outputFile)
}