C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-95
SRLName
SRLName
The SRLName pragma is used to "name" an SRL or a user library (a private shared
run-time library). This pragma is supported for TNS/R native C++ only.
srl_id
is the name of the SRL.
There is no default setting for this pragma.
Usage Guidelines
This pragma is valid only for TNS/R-targetted compilations.
The SRLName pragma is used to determine whether a SRLExportClassMembers
pragma provides a definition or a declaration for its exported functions.
The SRLName pragma must appear in the source file before any
SRLExportClassMembers pragma.
Example
// inc.h
struct s {
s(){};
foo(){};
static int a,b,c; int d;
goo(){};
goo(int){};
static static_fcn(){};
#pragma SRLExportClassMembers SRL_1 \
(s(), foo(), goo(), goo(int))
};
// SRL_1.C
// This provides the code for the exported member
// functions of s.
#pragma SRLName SRL_1
#include "inc.h" // This causes the member function of
// s to be defined
...
SRLName srl_id