mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
* Instruction database is now part of asmjit to keep it in sync * X86/X64 ISA data has been reworked, now in a proper JSON format * ARM32 ISA data has been added (currently only DB, support later) * ARM64 ISA data has been added * ARM features detection has been updated
24 lines
446 B
JavaScript
24 lines
446 B
JavaScript
// This file is part of AsmJit project <https://asmjit.com>
|
|
//
|
|
// See asmjit.h or LICENSE.md for license and copyright information
|
|
// SPDX-License-Identifier: Zlib
|
|
|
|
let VERBOSE = false;
|
|
|
|
function DEBUG(msg) {
|
|
if (VERBOSE)
|
|
console.log(msg);
|
|
}
|
|
exports.DEBUG = DEBUG;
|
|
|
|
function WARN(msg) {
|
|
console.log(msg);
|
|
}
|
|
exports.WARN = WARN;
|
|
|
|
function FATAL(msg) {
|
|
console.log(`FATAL ERROR: ${msg}`);
|
|
throw new Error(msg);
|
|
}
|
|
exports.FATAL = FATAL;
|