27 lines
385 B
C++
27 lines
385 B
C++
#include "dl_type.h"
|
|
#include "dl_range.h"
|
|
#include "dl_io.h"
|
|
#include "dl_string.h"
|
|
#include "dl_system.h"
|
|
|
|
using namespace dl;
|
|
|
|
|
|
int main()
|
|
{
|
|
initEngine();
|
|
|
|
log("hello dl!");
|
|
log("中文");
|
|
constexpr Point a{100, 100};
|
|
constexpr Point b{200, 200};
|
|
|
|
constexpr Point c = a + b;
|
|
|
|
constexpr Point d = Every::Clamp(c, 120, 150);
|
|
|
|
log(to_string(d));
|
|
|
|
releaseEngine();
|
|
return 0;
|
|
} |