lldb-sys 0.0.13

Raw bindings to the LLDB C++ API. LLDB is the debugger that is part of the LLVM project and is the default system debugger on Mac OS X. Building and using this is currently slightly tricky, so be sure to see the README.md in the repository.
//===-- SBExpressionOptionsBinding.cpp --------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "lldb/Bindings/LLDBBinding.h"
#include "lldb/API/LLDB.h"
#include "lldb/API/SBExpressionOptions.h"

using namespace lldb;

#ifdef __cplusplus
extern "C" {
#endif

SBExpressionOptionsRef
CreateSBExpressionOptions()
{
    return reinterpret_cast<SBExpressionOptionsRef>(new SBExpressionOptions());
}

void
DisposeSBExpressionOptions(SBExpressionOptionsRef instance)
{
    delete reinterpret_cast<SBExpressionOptions *>(instance);
}

bool
SBExpressionOptionsGetCoerceResultToId(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetCoerceResultToId();
}

void
SBExpressionOptionsSetCoerceResultToId(SBExpressionOptionsRef instance, bool coerce)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetCoerceResultToId(coerce);
}

bool
SBExpressionOptionsGetUnwindOnError(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetUnwindOnError();
}

void
SBExpressionOptionsSetUnwindOnError(SBExpressionOptionsRef instance, bool unwind)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetUnwindOnError(unwind);
}

bool
SBExpressionOptionsGetIgnoreBreakpoints(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetIgnoreBreakpoints();
}

void
SBExpressionOptionsSetIgnoreBreakpoints(SBExpressionOptionsRef instance, bool ignore)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetIgnoreBreakpoints(ignore);
}

enum lldb::DynamicValueType
SBExpressionOptionsGetFetchDynamicValue(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetFetchDynamicValue();
}

void
SBExpressionOptionsSetFetchDynamicValue(SBExpressionOptionsRef instance, lldb::DynamicValueType dynamic)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetFetchDynamicValue(dynamic);
}

unsigned int
SBExpressionOptionsGetTimeoutInMicroSeconds(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetTimeoutInMicroSeconds();
}

void
SBExpressionOptionsSetTimeoutInMicroSeconds(SBExpressionOptionsRef instance, uint32_t timeout)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetTimeoutInMicroSeconds(timeout);
}

unsigned int
SBExpressionOptionsGetOneThreadTimeoutInMicroSeconds(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetOneThreadTimeoutInMicroSeconds();
}

void
SBExpressionOptionsSetOneThreadTimeoutInMicroSeconds(SBExpressionOptionsRef instance, uint32_t timeout)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetOneThreadTimeoutInMicroSeconds(timeout);
}

bool
SBExpressionOptionsGetTryAllThreads(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetTryAllThreads();
}

void
SBExpressionOptionsSetTryAllThreads(SBExpressionOptionsRef instance, bool run_others)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetTryAllThreads(run_others);
}

bool
SBExpressionOptionsGetStopOthers(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetStopOthers();
}

void
SBExpressionOptionsSetStopOthers(SBExpressionOptionsRef instance, bool stop_others)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetStopOthers(stop_others);
}

bool
SBExpressionOptionsGetTrapExceptions(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetTrapExceptions();
}

void
SBExpressionOptionsSetTrapExceptions(SBExpressionOptionsRef instance, bool trap_exceptions)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetTrapExceptions(trap_exceptions);
}

void
SBExpressionOptionsSetLanguage(SBExpressionOptionsRef instance, lldb::LanguageType language)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetLanguage(language);
}

void
SBExpressionOptionsSetCancelCallback(SBExpressionOptionsRef instance, lldb::ExpressionCancelCallback callback,
                                         void *baton)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetCancelCallback(callback, baton);
}

bool
SBExpressionOptionsGetGenerateDebugInfo(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetGenerateDebugInfo();
}

void
SBExpressionOptionsSetGenerateDebugInfo(SBExpressionOptionsRef instance, bool b)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetGenerateDebugInfo(b);
}

bool
SBExpressionOptionsGetSuppressPersistentResult(SBExpressionOptionsRef instance)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    return unwrapped->GetSuppressPersistentResult();
}

void
SBExpressionOptionsSetSuppressPersistentResult(SBExpressionOptionsRef instance, bool b)
{
    SBExpressionOptions *unwrapped = reinterpret_cast<SBExpressionOptions *>(instance);
    unwrapped->SetSuppressPersistentResult(b);
}

#ifdef __cplusplus
}
#endif