GPL + CeCILL Header change
[scilab.git] / scilab / modules / scicos / src / cpp / il_state.cpp
1 /*
2  *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  *  Copyright (C) 2014 - Scilab Enterprises - Paul Bignier
4  *
5  * Copyright (C) 2012 - 2016 - Scilab Enterprises
6  *
7  * This file is hereby licensed under the terms of the GNU GPL v2.0,
8  * pursuant to article 5.3.4 of the CeCILL v.2.1.
9  * This file was originally licensed under the terms of the CeCILL v2.1,
10  * and continues to be available under such terms.
11  * For more information, see the COPYING file which you should have received
12  * along with this program.
13  * === LICENSE_END ===
14  *
15  */
16
17 /*--------------------------------------------------------------------------*/
18 #include "il_state.hxx"
19
20 #include "types.hxx"
21 #include "internal.hxx"
22
23 /*--------------------------------------------------------------------------*/
24 static types::InternalType* il_state_save = nullptr;
25 /*--------------------------------------------------------------------------*/
26 types::InternalType* get_il_state(void)
27 {
28     return il_state_save;
29 }
30 /*--------------------------------------------------------------------------*/
31 types::InternalType* set_il_state(types::InternalType* _state)
32 {
33     il_state_save = _state;
34     return il_state_save;
35 }
36 /*--------------------------------------------------------------------------*/