Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

373 B
Raw Blame
#include "version.h"
#include <stddef.h>

const char *xtl_version(void) {
#ifdef XTOOL_VERSION
    return XTOOL_VERSION;
#else
    return "unversioned";
#endif
}

bool xtl_has_uncommitted_changes(void) {
#ifndef XTOOL_VERSION
    return true;
#else
#ifdef XTOOL_HAS_UNCOMMITTED_CHANGES
    return XTOOL_HAS_UNCOMMITTED_CHANGES != 0;
#else
    return false;
#endif
#endif
}