Annotation of nono/vm/event.cpp, revision 1.1.1.2

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2018 [email protected]
                      4: //
                      5: 
                      6: #include "event.h"
                      7: 
                      8: // 全イベントの配列
                      9: std::vector<Event *> gEvents;
                     10: 
                     11: // コンストラクタ
                     12: Event::Event()
                     13: {
                     14:        // 自身をリストに追加する
                     15:        gEvents.push_back(this);
                     16: }
                     17: 
                     18: // デストラクタ
                     19: Event::~Event()
                     20: {
                     21: }
1.1.1.2 ! root       22: 
        !            23: // 名前をセットする
        !            24: void
        !            25: Event::SetName(const std::string& val)
        !            26: {
        !            27:        name = val;
        !            28:        if (name.length() > 25) {
        !            29:                dev->putmsg("Event Name \"%s\" is too long(%d chars)",
        !            30:                        name.c_str(), (int)name.length());
        !            31:                name.resize(25);
        !            32:        }
        !            33: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.