From 422e0a4d1cad1838890c19e6eb6219c42436f7d0 Mon Sep 17 00:00:00 2001 From: Dragos Carp Date: Mon, 19 Jan 2015 11:44:05 +0100 Subject: [PATCH] Fix #6 --- cmake-d/CMakeDCompilerABI.d | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake-d/CMakeDCompilerABI.d b/cmake-d/CMakeDCompilerABI.d index bbc90f9..a7ce103 100644 --- a/cmake-d/CMakeDCompilerABI.d +++ b/cmake-d/CMakeDCompilerABI.d @@ -1,5 +1,8 @@ +string info_sizeof_dptr = "INFO" ":" "sizeof_dptr[" ~ sizeof(void*).stringof ~ "]"; + int main(string[] args) { - int require = 0; - return require; + int require = 0; + require += info_sizeof_dptr[args.length]; + return require; }