File: instance.cc

package info (click to toggle)
xd 5.00.03-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 708 kB
  • sloc: cpp: 1,852; fortran: 161; makefile: 107; sh: 36; ansic: 30
file content (13 lines) | stat: -rw-r--r-- 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "options.ih"

    // by  command/command1.cc history/history1.cc
    //     alternatives/alternatives1.cc alternatives/checkcase.cc
    //     selector/selector1.cc

Options &Options::instance()
{
    if (not s_options)
        throw Exception{} << "Options not yet initialized";
    
    return *s_options;
}