From 34cc74df52ed129bffeb7b6fcf11f05c222550ba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Jun 2016 15:27:14 +0200 Subject: Get rid of extern "C" in module boot()/init() We will have a separate (extern "C") register() function that will return the pointers to these two. This way we can still throw exceptions from boot() and init(). --- build2/install/module | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'build2/install/module') diff --git a/build2/install/module b/build2/install/module index b2a3301..3f59fee 100644 --- a/build2/install/module +++ b/build2/install/module @@ -14,17 +14,17 @@ namespace build2 { namespace install { - extern "C" void - install_boot (scope&, const location&, unique_ptr&); + void + boot (scope&, const location&, unique_ptr&); - extern "C" bool - install_init (scope&, - scope&, - const location&, - unique_ptr&, - bool, - bool, - const variable_map&); + bool + init (scope&, + scope&, + const location&, + unique_ptr&, + bool, + bool, + const variable_map&); } } -- cgit v1.1