DIRECTOR: Lingo: Implemented string() built-in function

This commit is contained in:
Eugene Sandulenko
2016-08-03 23:40:36 +02:00
parent a8498f41a0
commit 40856e6d06
2 changed files with 8 additions and 0 deletions
@@ -41,6 +41,7 @@ static struct BuiltinProto {
{ "random", Lingo::b_random, 1},
{ "sin", Lingo::b_sin, 1},
{ "sqrt", Lingo::b_sqrt, 1},
{ "string", Lingo::b_string, 1},
{ "tan", Lingo::b_tan, 1},
{ 0, 0, 0 }
};
@@ -145,6 +146,12 @@ void Lingo::b_sqrt() {
g_lingo->push(d);
}
void Lingo::b_string() {
Datum d = g_lingo->pop();
d.toString();
g_lingo->push(d);
}
void Lingo::b_tan() {
Datum d = g_lingo->pop();
d.toFloat();
+1
View File
@@ -226,6 +226,7 @@ public:
static void b_random();
static void b_sin();
static void b_sqrt();
static void b_string();
static void b_tan();
void func_mci(Common::String &s);