mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
fd64e4fb96
This means that 'throw Error({ ... ErrorInfo ... })' now works.
34 lines
519 B
C++
34 lines
519 B
C++
#pragma once
|
|
|
|
#include "ref.hh"
|
|
|
|
#include <list>
|
|
#include <set>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
namespace nix {
|
|
|
|
using std::list;
|
|
using std::set;
|
|
using std::vector;
|
|
using std::string;
|
|
|
|
typedef list<string> Strings;
|
|
typedef set<string> StringSet;
|
|
typedef std::map<string, string> StringMap;
|
|
|
|
/* Paths are just strings. */
|
|
|
|
typedef string Path;
|
|
typedef list<Path> Paths;
|
|
typedef set<Path> PathSet;
|
|
|
|
/* Helper class to run code at startup. */
|
|
template<typename T>
|
|
struct OnStartup
|
|
{
|
|
OnStartup(T && t) { t(); }
|
|
};
|
|
|
|
}
|