File: api_helper.cpp

package info (click to toggle)
ausaxs 1.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 72,592 kB
  • sloc: cpp: 49,853; ansic: 6,901; python: 730; makefile: 18
file content (13 lines) | stat: -rw-r--r-- 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: LGPL-3.0-or-later
// Author: Kristian Lytje

#include <api/api_helper.h>

extern "C" API void get_last_error_msg(
    char** buffer,
    int* status
) {
    *status = 1;
    *buffer = const_cast<char*>(ErrorMessage::last_error.c_str());
    *status = 0;
}