bump product version to 4.1.6.2
[LibreOffice.git] / bridges / test / inter_libs_exc / inter.cxx
blob3c1190dabb4ba462fac33d7757549e4da4a79586
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <stdio.h>
21 #include "share.h"
23 #include <rtl/string.hxx>
24 #include <osl/module.hxx>
27 using namespace ::rtl;
28 using namespace ::osl;
29 using namespace ::com::sun::star;
30 using namespace ::com::sun::star::uno;
32 extern "C" int main( int argc, char const * argv [] )
34 #ifdef SAL_W32
35 #define SAL_DLLPREFIX ""
36 #endif
37 Module mod_starter(
38 SAL_DLLPREFIX "starter" SAL_DLLEXTENSION,
39 SAL_LOADMODULE_LAZY | SAL_LOADMODULE_GLOBAL );
40 Module mod_thrower(
41 SAL_DLLPREFIX "thrower" SAL_DLLEXTENSION,
42 SAL_LOADMODULE_LAZY | SAL_LOADMODULE_GLOBAL );
44 typedef t_throws_exc (SAL_CALL * t_get_thrower)();
45 t_get_thrower get_thrower = (t_get_thrower)mod_thrower.getSymbol( "get_thrower" );
46 t_throws_exc thrower = (*get_thrower)();
48 typedef void (SAL_CALL * t_starter)( t_throws_exc );
49 t_starter start = (t_starter)mod_starter.getSymbol( "start" );
51 (*start)( thrower );
53 return 0;
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */