fixed c implemntation
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#ifndef TART_H
|
#ifndef TART_H
|
||||||
#define TART_H
|
#define TART_H
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
// #========================================================================#
|
// #========================================================================#
|
||||||
// | PreacherDHM:TART
|
// | PreacherDHM:TART
|
||||||
// |
|
// |
|
||||||
@@ -86,4 +89,7 @@ struct tart_buffer* tart_get_buffer(struct tart_window*, tart_byte);
|
|||||||
struct tart_cell* tart_get_cell(struct tart_buffer*, int);
|
struct tart_cell* tart_get_cell(struct tart_buffer*, int);
|
||||||
struct tart_cell tart_set_cell(struct tart_buffer*, struct tart_cell,int);
|
struct tart_cell tart_set_cell(struct tart_buffer*, struct tart_cell,int);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include "../includes/tart.h"
|
#include "../includes/tart.h"
|
||||||
|
|
||||||
|
|
||||||
// windows only
|
#ifdef _WIN64
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
struct tart_vec2 term_current_size() {
|
struct tart_vec2 term_current_size() {
|
||||||
struct tart_vec2 ret;
|
struct tart_vec2 ret;
|
||||||
@@ -19,3 +19,9 @@ struct tart_vec2 term_current_size() {
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct tart_vec2 term_current_size() {
|
||||||
|
struct tart_vec2 ret = {50,50};
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ set( CMAKE_CXX_STANDARD 11)
|
|||||||
set( CMAKE_CXX_STANDARD_REQUIRED ON)
|
set( CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set( SOURCES
|
set( SOURCES
|
||||||
main.cpp
|
main.cpp
|
||||||
test_tart.cpp
|
#test_tart.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} ${SOURCES} )
|
add_executable(${PROJECT_NAME} ${SOURCES} )
|
||||||
target_link_libraries(${PROJECT_NAME} TartLib PickleLib)
|
target_link_libraries(${PROJECT_NAME} TartLib)# PickleLib)
|
||||||
|
|
||||||
add_test(${PROJECT_NAME} "${CMAKE_SOURCE_DIR}/bin/testing.exe")
|
add_test(${PROJECT_NAME} "${CMAKE_SOURCE_DIR}/bin/testing.exe")
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#include "test_tart.h"
|
#include "test_tart.h"
|
||||||
#include <Pickler.h>
|
//#include <Pickler.h>
|
||||||
int main (int argc, char *argv[]) {
|
int main (int argc, char *argv[]) {
|
||||||
INSTALLSHELF;
|
// INSTALLSHELF;
|
||||||
tart_run(&__pickle_shelf__);
|
tart_create_cell('t', '1', (struct tart_rgb){0,0,0}, (struct tart_rgb){0,0,0});
|
||||||
return PICKLESHELF;
|
//tart_run(&__pickle_shelf__);
|
||||||
|
return 0;//PICKLESHELF;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#include "test_tart.h"
|
#include "test_tart.h"
|
||||||
#include "../includes/tart.h"
|
|
||||||
#include "Pickler.h"
|
#include "Pickler.h"
|
||||||
bool rgb_test(struct tart_rgb* lhs, struct tart_rgb* rhs) {
|
bool rgb_test(struct tart_rgb* lhs, struct tart_rgb* rhs) {
|
||||||
if(lhs->r != rhs->r) {return false;}
|
if(lhs->r != rhs->r) {return false;}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "../includes/tart.h"
|
#include <tart.h>
|
||||||
#include <Pickler.h>
|
//#include <Pickler.h>
|
||||||
|
|
||||||
bool rgb_test(struct tart_rgb* lhs, struct tart_rgb* rhs);
|
bool rgb_test(struct tart_rgb* lhs, struct tart_rgb* rhs);
|
||||||
bool vec2_test(struct tart_vec2* lhs, struct tart_vec2* rhs);
|
bool vec2_test(struct tart_vec2* lhs, struct tart_vec2* rhs);
|
||||||
|
|||||||
Reference in New Issue
Block a user