From a3eae0a8a90a35167f8cf5de4fa4b2287f29bb50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Wed, 7 Oct 2020 22:31:50 +0200 Subject: [PATCH] add extension hook to pre-define constants --- crsn/src/asm/parse/parse_data.rs | 34 ++++++++++++++++++++++++-------- crsn/src/module/mod.rs | 9 ++++++++- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/crsn/src/asm/parse/parse_data.rs b/crsn/src/asm/parse/parse_data.rs index 6e6a27a..b4f41f1 100644 --- a/crsn/src/asm/parse/parse_data.rs +++ b/crsn/src/asm/parse/parse_data.rs @@ -94,30 +94,48 @@ pub fn parse_data_disp(tok: Sexp, pcx: &ParserContext) -> Result(&self, name: &str) -> Option + { + None + } + /// Drop an object referenced by a handle fn drop_obj(&self, ti: &ThreadInfo, state: &mut RunState, handle: Value) -> Result, Fault>