File: namespaces_module.sip

package info (click to toggle)
sip6 6.15.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,608 kB
  • sloc: ansic: 192,441; python: 20,668; makefile: 25; cpp: 8
file content (30 lines) | stat: -rw-r--r-- 318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// The SIP implementation of the namespaces_module test module.


%Module(name=namespaces_module)


%ModuleHeaderCode
namespace NS
{
    extern int attr;
    int get_attr();
};
%End


%ModuleCode
int NS::attr = 0;

int NS::get_attr()
{
    return NS::attr;
}
%End


namespace NS
{
    int attr;
    int get_attr();
};