-
Notifications
You must be signed in to change notification settings - Fork 10
/
args.h
58 lines (54 loc) · 1.78 KB
/
args.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* args.h
*
* Helper functions for command line argument parsing
*
* LLST (LLVM Smalltalk or Low Level Smalltalk) version 0.4
*
* LLST is
* Copyright (C) 2012-2015 by Dmitry Kashitsyn <korvin@deeptown.org>
* Copyright (C) 2012-2015 by Roman Proskuryakov <humbug@deeptown.org>
*
* LLST is based on the LittleSmalltalk which is
* Copyright (C) 1987-2005 by Timothy A. Budd
* Copyright (C) 2007 by Charles R. Childers
* Copyright (C) 2005-2007 by Danny Reinhold
*
* Original license of LittleSmalltalk may be found in the LICENSE file.
*
*
* This file is part of LLST.
* LLST is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LLST is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LLST. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LLST_ARGS_H_INCLUDED
#define LLST_ARGS_H_INCLUDED
#include <cstddef>
#include <string>
struct args
{
std::size_t heapSize;
std::size_t maxHeapSize;
std::string imagePath;
std::string memoryManagerType;
int showHelp;
int showVersion;
args() :
heapSize(0), maxHeapSize(0), memoryManagerType(), showHelp(false), showVersion(false)
{
}
void parse(int argc, char **argv);
static std::string getHelp();
static std::string getVersion();
};
#endif