diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-17 08:20:02 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-18 17:47:12 +0800 |
commit | 7a73dff85f30bb1e77818b8da8ed192c72e12626 (patch) | |
tree | c9c47c585b759db13cc47c6fc17ce9b9f89169a2 /tools/minicargo/helpers.h | |
parent | 7b06535ba9690e360417893ff1a8410f5b145440 (diff) | |
download | mrust-7a73dff85f30bb1e77818b8da8ed192c72e12626.tar.gz |
minicargo - Handle `[package]links=foo` (crudely)
Diffstat (limited to 'tools/minicargo/helpers.h')
-rw-r--r-- | tools/minicargo/helpers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/minicargo/helpers.h b/tools/minicargo/helpers.h index 9f97b5bb..8111483a 100644 --- a/tools/minicargo/helpers.h +++ b/tools/minicargo/helpers.h @@ -40,6 +40,13 @@ public: os.write(sv.m_start, sv.m_len); return os; } + + const char* begin() const { + return m_start; + } + const char* end() const { + return m_start+m_len; + } }; |