From d6d3c12efbcec61b3d868bc7d3f861fdb91835a5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 18 Jan 2021 00:08:30 +0300 Subject: feat(tazjin/rlox): Implement simple arithmetic operators Change-Id: I9873bcd281053f4e9820a5119f5992a0b8cb8cfc Reviewed-on: https://cl.tvl.fyi/c/depot/+/2417 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/rlox/src/bytecode/chunk.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'users/tazjin/rlox/src/bytecode/chunk.rs') diff --git a/users/tazjin/rlox/src/bytecode/chunk.rs b/users/tazjin/rlox/src/bytecode/chunk.rs index 4a671c8383..5d71df2b05 100644 --- a/users/tazjin/rlox/src/bytecode/chunk.rs +++ b/users/tazjin/rlox/src/bytecode/chunk.rs @@ -66,6 +66,7 @@ impl Chunk { /// Print a single disassembled instruction at the specified offset. /// Some instructions are printed "raw", others have special handling. +#[cfg(feature = "disassemble")] pub fn disassemble_instruction(chunk: &Chunk, offset: usize) { print!("{:04} ", offset); -- cgit 1.4.1