Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

30
kmake/src/log.ts Normal file
View File

@ -0,0 +1,30 @@
let myInfo = function (text: string, newline: boolean) {
if (newline) {
console.log(text);
}
else {
process.stdout.write(text);
}
};
let myError = function (text: string, newline: boolean) {
if (newline) {
console.error(text);
}
else {
process.stderr.write(text);
}
};
export function set(log: any) {
myInfo = log.info;
myError = log.error;
}
export function info(text: string, newline: boolean = true) {
myInfo(text, newline);
}
export function error(text: string, newline: boolean = true) {
myError(text, newline);
}