mirror of
https://onedev.site.tesses.net/crosslang/crosslangextras
synced 2026-02-09 01:25:46 +00:00
12 lines
360 B
Plaintext
12 lines
360 B
Plaintext
func RunTool(cfg)
|
|
{
|
|
//cfg.Project is the project Subdirfilesystem
|
|
//cfg.ProjectInfo is the info property parsed from the cross.json file in project root
|
|
cfg.GeneratedSource.Add({
|
|
Source = "func times(a,b){return a * b;}",
|
|
FileName = "times.tcross"
|
|
});
|
|
|
|
//this runs with full access to vm so be careful when allowing these
|
|
}
|