fcml
1.3.0
Toggle main menu visibility
Loading...
Searching...
No Matches
fcml_intel_dialect.hpp
Go to the documentation of this file.
1
/*
2
* FCML - Free Code Manipulation Library.
3
* Copyright (C) 2010-2020 Slawomir Wojtasiak
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
26
27
#ifndef FCML_INTEL_DIALECT_HPP_
28
#define FCML_INTEL_DIALECT_HPP_
29
30
#include "
fcml_dialect.hpp
"
31
32
#include "
fcml_intel_dialect.h
"
33
34
namespace
fcml {
35
39
class
IntelDialect
:
public
Dialect
{
40
public
:
47
IntelDialect
(fcml_uint32_t flags =
FCML_INTEL_DIALECT_CF_DEFAULT
) {
48
fcml_st_dialect
*dialect;
49
fcml_ceh_error
error =
::fcml_fn_dialect_init_intel
(flags, &dialect);
50
if
(error) {
51
throw
InitException
(
52
FCML_TEXT
(
"Can not initialize the Intel dialect."
), error);
53
}
54
Dialect::setDialect
(dialect);
55
}
56
60
virtual
~IntelDialect
() {
61
}
62
};
63
64
}
65
66
#endif
/* FCML_INTEL_DIALECT_HPP_ */
fcml::Dialect::Dialect
Dialect()
Default constructor.
Definition
fcml_dialect.hpp:48
fcml::Dialect::setDialect
void setDialect(fcml_st_dialect *dialect)
Sets a new dialect for the wrapper.
Definition
fcml_dialect.hpp:83
fcml::InitException
Component can not be initialized correctly.
Definition
fcml_common.hpp:231
fcml::IntelDialect::IntelDialect
IntelDialect(fcml_uint32_t flags=FCML_INTEL_DIALECT_CF_DEFAULT)
Creates the Intel dialect.
Definition
fcml_intel_dialect.hpp:47
fcml::IntelDialect::~IntelDialect
virtual ~IntelDialect()
Virtual destructor.
Definition
fcml_intel_dialect.hpp:60
fcml_st_dialect
struct fcml_st_dialect fcml_st_dialect
Assembler dialect.
Definition
fcml_dialect.h:36
fcml_dialect.hpp
C++ wrapper for the base dialect.
fcml_ceh_error
fcml_uint16_t fcml_ceh_error
All error codes should be held in variables of this type.
Definition
fcml_errors.h:156
fcml_intel_dialect.h
Intel dialect implementation.
FCML_INTEL_DIALECT_CF_DEFAULT
#define FCML_INTEL_DIALECT_CF_DEFAULT
Default combination of the configuration flags.
Definition
fcml_intel_dialect.h:39
fcml_fn_dialect_init_intel
LIB_EXPORT fcml_ceh_error LIB_CALL fcml_fn_dialect_init_intel(fcml_uint32_t config_flags, fcml_st_dialect **dialect)
Initializes Intel dialect.
FCML_TEXT
#define FCML_TEXT(x)
Used to code literal strings.
Definition
fcml_types.h:61
include
fcml_intel_dialect.hpp
Generated by
1.17.0