hlvm_runtime 0.6.0

The Runtime for the HLVM Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::Debug;
use std::process::exit;

pub fn throw<T>(s: &str, stack: Vec<T>) where T: Debug {
    println!("==[ ERROR ]========> {}", s);
    println!("==[ STACK TRACE ]==> {:?}", stack);
    exit(1);
}

pub fn throw_no_stack(s: &str) {
    println!("==[ ERROR ]========> {}", s);
    exit(1);
}